aboutsummaryrefslogtreecommitdiffstats
path: root/src/color.asm (follow)
Commit message (Collapse)AuthorAgeFilesLines
* term: 7-color terminal (per-glyph fg+bg) + ANSI escapes; colorize ircuser3 days1-0/+40
Fano-plane palette scheme: the 7 colors map onto 7 CGB BG palettes so any color pair shares one palette; a tile's palette is picked from the set of colors its two cells need (tables generated by tools/gencolor.py). Per cell a packed (bg<<4)|fg byte lives alongside the char shadow, and the glyph blitter steers glyph/empty pixels to each cell's fg/bg color slots via plane masks. An ANSI-ish CSI parser (ESC [ .. m) drives it; usr/ansi.c demos it and the irc client now renders hashed nick colors, status dimming and a channel-activity bar.