Lantern Depths: Find the Shade Dash, Slay the Thorn Knight
- ..
- .metadata142 B
- README.md1.6 KB
- block.yaml999 B
README.md
Dither palette (styleBlock, Colour)
Holds the picture to a small retro palette with an ordered (Bayer 4 x 4) dither, like 8-bit and 16-bit games and early PCs: few colour steps per channel, smooth gradients and glows turned into checker patterns on a chunky pixel grid. An optional ramp pulls colours toward a shadow and a light colour (a handheld green, a sepia, a night blue). Shipped by sideScrollerKit for its pixel and minimal theme looks; it stacks and swaps with every Colour block (StyleKit.swap("palette", "posterize")).
Settings: size (5 reference px, the pixel size of sideScrollerKit's 16 px tiles at the default camera), levels (6), spread (0.6), shadow, light, ramp (0, off).
What it gives up in motion
The dither grid belongs to the screen. Flat areas of a palette colour stay still; a gradient or glow that moves changes its checker pattern in steps, as it did on old hardware. Pair it with chunkyPixels at the same size so the dither cells and the pixels line up.
How it treats content
- Opaque things: cut to the palette, gradients dithered.
- Transparent things (glass, water): the same, on what is seen through them.
- Particles and smoke: soft glows become dithered rings.
- Sky: banded and dithered.
- Fog: the same.
- Skinned characters and sprites: the same; pixel art already in few colours is barely changed.
- Foliage: the same.
- World text: cut to the palette; exclude labels that must stay exact. Screen UI is drawn after the stack and is never touched.
- Black stays black and white stays white (with
ramp0).