Skip to content

Commit

Permalink
Scary pumpkin visualization.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Oct 25, 2023
1 parent 62b9515 commit 01489cf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/examples/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export function getExampleGalleries(locales: Locales): Gallery[] {
'RainingKitties',
'RotatingBinary',
'FontMachine',
'Pumpkin',
]
),
createGallery(
Expand Down
20 changes: 20 additions & 0 deletions static/examples/Pumpkin.wp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Pumpkin
=== start
time: Time(1000ms)
place: Place(0m 0m) … ∆ time … Place(Random(-4m 4m) Random(-4m 4m) Random(-4m 0m))
opacity: 1 … ∆ time … Random(0.25 1)
show: ⊤ … ∆ time … ~show
pumpkin: Phrase(
'🎃'
opacity: opacity
place: place
entering: Sequence({
0%: Pose(scale: 1.25 rotation: -21°)
20%: Pose(scale: 0.75 rotation: 13°)
40%: Pose(scale: 1 rotation: -7°)
60%: Pose(scale: 1.25 rotation: 19°)
100%: Pose()
} 0.5s count: 3x)
)

Stage(show ? [pumpkin] [] background: Color(0% 0 0°))

0 comments on commit 01489cf

Please sign in to comment.