ascii-backdrop
Installation
SKILL.md
ASCII Backdrop
A subject paints brightness or colour on a small canvas; the engine prints every character cell as a glyph, dot or tile. Anything that can paint on a canvas can be the subject.
How it works
Every frame, each layer's subject draws itself on a small offscreen canvas (a few pixels per character cell). The engine reads those pixels and prints them in the layer's mode. A lower depth dims a layer, which gives depth for free; a clear zone fades output around the UI so headings and inputs stay readable. Changing the subject means changing one draw function; the engine does not change.
| Print mode | Layer setting | Look | Frame cost at 1440×900 (measured) |
|---|---|---|---|
| Brightness glyphs | default mode: 'glyph' |
Glyph from the density ramp; the brightest cells print as filled boxes | ~8 ms |
| Edge glyphs | glyph: { edges: true } |
/ \ | - follow strong edges |
~8 ms |
| Shape matching | glyph: { match: 'shape' } |
Samples a 2×3 grid per cell and picks the glyph whose shape fits best, for crisper outlines (after Alex Harri) | ~5 ms (cached) |
| Braille | mode: 'braille' |
2×4 dots per cell, twice the resolution, optional Bayer dither | ~6 ms |
| Dither | mode: 'dither' |
Bayer 4×4 ordered dither, dots or squares sized by level | ~6 ms |
| Colour tiles | mode: 'tile' |
Rounded squares in the colours the subject paints | ~3 ms |
Subjects paint in white (brightness = density); only tile layers paint real colours. Layers in different modes can share one scene.