rocinantealpha

reference / pictures

canvas

Makes a canvas: a picture you draw into with draw into. It keeps what is drawn on it from frame to frame, and is shown with image. Make it once, not every frame.

c = canvas 160 120draw into c [  background 30  fill orange  circle at (width / 2) (height / 2) radius 40]image c at 20 20image c at 200 20 width 180 tint tealimage c at 20 160 size 100 100
what it draws: the whole window, 400 by 300
What the example of canvas draws

How to write it

canvas width height

Gives a picture.

Related