image
draw.image()
Draws an image on screen at a specific position and size.
draw.image(image, [x, y, w, h], rotation)
image
HTMLImageElement
Reference to a previously loaded image object (e.g., using draw.newImage
).
[x, y, w, h]
Array
Defines position (x
, y
) and size (w
= width, h
= height) of the drawing on screen.
Rotation angle in degrees. Rotation is applied around the object's center.