Follow

I only now realized that the ANSI color codes for red (1), green (2), and blue (4) are arranged on powers of two and that the rest correspond to addition of the primaries: 3=yellow, 5=magenta, 6=cyan, 7=white.

@Bombe someone was paying attention to prior art in the field. ;)

@pesco It's been almost 20 years since I first typed a COLOR statement in a QuickBasic program and I have never considered this. I just had memorised what each of the numbers did. Looks like QuickBasic had different colours, but it's the same concept.

https://en.wikibooks.org/wiki/QBasic/Text_Output#Color_by_Number

@pesco Huh. Can't recall if I've thought about this -- but yeah, it's straightforward 1bit-per-channel, 3bit color.

Sign in to participate in the conversation
chaos.social

chaos.social – a Fediverse instance for & by the Chaos community