rocinantealpha

reference / text

text

Draws text with its top at a point, in the current font.

background 250fill 30font "Inter Bold" size 48text "Hello" at 30 40font "Inter" size 20fill tealtext "Words, set in Inter. A longer line wraps at the width you give it." at 30 120 width 340
what it draws: the whole window, 400 by 300
What the example of text draws

How to write it

text words at x y [fill color] [stroke color] [thickness number] [alpha number] [style value] [size number] [font text] [align word] [leading number] [width number]
text words at position [fill color] [stroke color] [thickness number] [alpha number] [style value] [size number] [font text] [align word] [leading number] [width number]

Words it takes

after align
left, center, right

Related