Skip to content

Commit

Permalink
Added font machine example.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Oct 25, 2023
1 parent 6e9b980 commit 62b9515
Show file tree
Hide file tree
Showing 2 changed files with 14 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 @@ -115,6 +115,7 @@ export function getExampleGalleries(locales: Locales): Gallery[] {
'Questions',
'RainingKitties',
'RotatingBinary',
'FontMachine',
]
),
createGallery(
Expand Down
13 changes: 13 additions & 0 deletions static/examples/FontMachine.wp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Font Machine
=== start
fonts: ["Arvo" "Modak" "Poor Story" "Tangerine" "Monoton" "Quicksand"]
symbols: 'typography' ÷ ''

ƒ randomize()
symbols.translate(
ƒ (symbol) Phrase(symbol face: fonts.random() duration: 0s)
)

phrases: randomize() … ∆ Key() | ∆ Button(⊤) … randomize()

Stage([Group(Row(0 0m) phrases place: Place(0m 0m))])

0 comments on commit 62b9515

Please sign in to comment.