rocinantealpha

reference / pictures

image

Draws a loaded picture with its top left at a point, at its own size, or at a width or height (the other side follows) or a size.

photo = load "landscape.png"badge = load "sprite.png"background 245image photo at 20 20 width 220image photo at 260 20 size 120 120image badge at 30 170image badge at 160 170 height 60 as center
what it draws: the whole window, 400 by 300
What the example of image draws

How to write it

image picture at x y [width number] [height number] [tint color] [alpha number] [as word]
image picture at position [width number] [height number] [tint color] [alpha number] [as word]
image picture at x y size width height [tint color] [alpha number] [as word]
image picture at position size size [tint color] [alpha number] [as word]

Related