Colour & effects · palette cycling.
Flowing water, bubbling lava, crackling fire, a shimmering "loading" bar, chasing marquee lights — the SNES draws all of these without redrawing a single pixel or spending any VRAM bandwidth. You rotate a handful of palette entries and the hardware does the rest. It is the cheapest animation on the machine, and once you see it you will spot it in half the games you grew up with.
The single new idea: CGRAM is a live lookup table. Rewrite one colour entry during VBlank and every pixel that indexes it changes colour on the very next frame — no tiles touched, no map redrawn. This rung rests on what you already know: solid tiles, a tilemap, and dmaCopyCGram() from earlier colour rungs.
The scene is a noodle bar's sign and a coolant pipe on a brick wall (res/sign.png), and it was drawn for the cycle. Each letter of NOODLES is painted with its own colour index, 8 to 14 of BG palette 0; the coolant uses indices 8 to 15 of BG palette 1, which follow one another along the pipe. The wall, the frame and the pipe's metal use the other indices. Every fourth frame, entries 8-15 of both palettes are rotated by one slot (each colour moves to the next index) and pushed back to CGRAM: a wave of light runs along the letters and the coolant flows. Because each wheel closes the loop (entry 15 flows into entry 8), the cycle is seamless.
That is the whole craft of palette cycling: keep the indices that turn apart from the ones that stay, and lay them out in the order the light should run.
Probe oracle: cycle_pos counts every rotation (advances while running, frozen after a START toggle); cycling is the on/off flag.
res/sign.png is drawn by devtools/art_assets/build.py (neon_sign), with the library's font scaled three times for the letters; the build converts it with its two palettes (colors = 32: each tile gets the bank of its colours).
console, dma, background, input
← previous: transparency · colour math blending · → next in family: direct_color · the pixel byte is the colour