rocinantealpha

reference / pictures

draw into

Runs a block whose drawing goes onto a canvas instead of the window, from the default style. clear or background inside it start the canvas over; width and height are its size.

c = canvas 360 120draw into c [  background [ navy teal ]  fill white  font "Inter Bold" size 40  align center  text "drawn once" at 180 36  fill gold  circle at 330 90 radius 14]background 245image c at 20 20image c at 20 160 width 180image c at 220 160 size 160 100
what it draws: the whole window, 400 by 300
What the example of draw into draws

How to write it

draw into canvas [ ... ]

Related