Surface
A texture as the engine holds it: its pixels (kept for context loss and renderer swaps) and the renderer’s copy.
Properties
Section titled “Properties”source
Section titled “source”source:
HTMLCanvasElement|HTMLImageElement|ImageBitmap
The pixels.
texture
Section titled “texture”texture:
Texture|null
The renderer’s texture of it, made on first draw (null until then, and after a renderer swap).
pending
Section titled “pending”pending: [
HTMLCanvasElement,number,number][]
Regions baked since the last upload: [scratch canvas, x, y].