* Create and return a new Canvas element (or `OffscreenCanvas` when * supported and `returnOffscreenCanvas` is true). Centralized * renderer-side allocator so every scratch / fallback / render- * target canvas in the engine routes through the same * `OffscreenCanvas`-aware path, instead of d
(width, height, returnOffscreenCanvas = false)
| 296 | * @returns {HTMLCanvasElement|OffscreenCanvas} a new canvas of the given size |
| 297 | */ |
| 298 | static createCanvas(width, height, returnOffscreenCanvas = false) { |
| 299 | return createCanvas(width, height, returnOffscreenCanvas); |
| 300 | } |
| 301 | |
| 302 | /** |
| 303 | * Shared 1×1 fully-white canvas used as a no-op texture fallback. |