Canvas Render

Change the offscreen renderer, palette recolor, z-position order, or magenta mask, and ask the user to check WebGL and the CPU fallback. Use when editing sources/canvas/, palette recolor, z-positions, or renderer output.

liberatedpixelcup 0ebef15 1.2 KB Updated

File contents

Canvas render

Palette recoloring is the only WebGL/CPU branch, in recolorImage() in sources/canvas/palette-recolor.ts. The two implementations can disagree, and only one runs on a given machine.

You cannot confirm both paths. Ask the user to follow Force CPU Mode and Visual Verification: setPaletteRecolorMode("cpu"), then setPaletteRecolorMode("webgl"), and compare with getPaletteRecolorStats().

Lower zPos draws first and ends up behind (ARCHITECTURE.md). Magenta #FF2CE6 is keyed out in sources/canvas/mask.ts.

ZIP export drawing and render timing (WebGL and CPU) are a separate check: performance-profiling. Visual correctness of both recolor paths is still this skill.

liberatedpixelcup/universal-lpc-spritesheet-character-generator/tree/main/.agents/skills/canvas-render commit 0ebef15a18

Frequently asked questions

npx skillmds@latest add liberatedpixelcup/canvas-render