3 ms·
Yes, people did use the hex codes back then. You just had to take care that the ones you used were on the list of 216 (not 256) web safe colors. The VGA palette
by bitwize 5y ago
Yes, people did use the hex codes back then. You just had to take care that the ones you used were on the list of 216 (not 256) web safe colors. The VGA palette was programmable and supported up to 262,144 colors, but a standard set of 216 was used in browsers to allow Windows, Mac OS, and other programs color table slots with which to draw their standard colors.
I think some browsers understood X11 color names like "blue" or "DarkSlateGray", but there are more than 216 of those, so same caveat applies.
- geophile 5y agoThe ASCII color codes for a terminal are in a 6x6x6 space. That’s 216. Does that explain the number of web-safe colors?
- bitwize 5y agoThe same space is used for the web colors, but I don't know if there's a causal connection there.
- duskwuff 5y agoNo. 256-color mode wasn't added to XTerm until July 1999: https://invisible-island.net/xterm/xterm.log.html#xterm_111 https://invisible-island.net/xterm/xterm.log.html#xterm_111
- tyingq 5y ago>some browsers understood X11 color names This still exists in some weird places. For example, I have a Hue portable light that connects to Alexa and can change colors. But I can only tell it X11 color names...it doesn't understand anything else. Which is funny given that both devices are fairly modern.