Effects arc 4/7. Direct color mode (CGWSEL bit 0, exposed as colorMathSetDirectColor()) makes the PPU read 8bpp BG pixels as BBGGGRRR colors directly, bypassing CGRAM entirely. This example builds a 16×16 chart of all 256 pixel codes procedurally — zero assets, 256 solid-color tiles generated in C at init — and loads a deliberately different CGRAM palette (a grayscale ramp), so A flips the very same VRAM bytes between two readings: the BBGGGRRR color cube (direct, boot state) and the grayscale ramp (CGRAM). Nothing is re-uploaded on toggle — one register bit changes the meaning of every pixel on screen.
ROM mode: LoROM (project default).
console, dma, background, colormath, input