Chrome has trouble copying from a canvas in RAM to a canvas in GPU memory and vice versa, unless all canvases are >= 256x256.
Draws this image.
A canvas' graphics context.
The x-coordinate at which to draw.
The y-coordinate at which to draw.
Draws this image.
A canvas' graphics context.
The x-coordinate at which to draw.
The y-coordinate at which to draw.
The width to (possibly) stretch the image to when drawing.
The height to (possibly) stretch the image to when drawing.
Draws this image.
A canvas' graphics context.
The x-coordinate at which to draw.
The y-coordinate at which to draw.
The width of the (possibly) sub-image to draw.
The height of the (possibly) sub-image to draw.
The x-coordinate at which to draw.
The y-coordinate at which to draw.
The width to (possibly) stretch the image to when drawing.
The height to (possibly) stretch the image to when drawing.
Converts a color of a particular type to completely transparent in this image.
The x-coordinate of the pixel whose color to change. 0 will be used if this parameter is undefined.
The y-coordinate of the pixel whose color to change. 0 will be used if this parameter is undefined.
This image, which has been modified.
Generated using TypeDoc
A wrapper around images. Handles browser-specific quirks and other things a game shouldn't have to know about.