Colour & effects · shadow & tint.
Mood is colour. Nightfall, a dungeon, a cave — subtract a grey and the whole screen darkens. Underwater, poison gas, a lava cavern, a sepia flashback, the red flash of taking a hit — add a colour and everything takes that cast. The SNES does this to every pixel of a layer in one PPU pass, so a single register pair changes the entire scene's atmosphere for zero per-frame cost. It is the difference between one tileset and a tileset that reads as day, dusk, and midnight.
The single new idea: colour math against a fixed colour. The PPU takes the finished main-screen image and adds or subtracts a constant colour per layer — colorMathShadow() subtracts a grey (darken), colorMathTint() adds a colour (cast). This rests on the layers, tiles and palette you already know; the effect sits on top of them and touches no VRAM, CGRAM or OAM.
Because both effects share the one fixed-colour register and the single add/subtract bit, only one is active at a time — which is exactly why the demo cycles through them rather than combining them. The scene is a street of the city at night — apartment blocks and a noodle sign (res/street.png, Néo-Lumen art, CC0) — so you can watch the transform land on a picture. The sky is the backdrop, not BG1: it keeps its colour, because colour math here is enabled on BG1 only.
Probe oracle: fx_state (0 none, 1 blackout, 2 green rain, 3 red alert) advances on each A press; the effect matches CGADSUB (add/subtract) and COLDATA (the fixed colour).
res/street.png is backgrounds/city_near.png of assets/neo-lumen/, indexed by devtools/art_assets/build.py; the build converts it (res/street.png.toml).
console, dma, background, colormath, input
← previous: transparency · colour math between two layers · → next in family: direct_color · the pixel byte is the colour