Cool....I was just wondering. I'd like some colors, but I don't need hundreds.
I imagine that this limit probably dates from long ago - maybe from when you had a 256 color (or less!) palette to work with on Windows.
Two more questions ...
Given the color index, how can I query the RGB value?
What are the "special" color constants?
0x80000008 and 0x80000005 are used often and seem to be related to the default bk and fg colors.
But there are some others, 0x80000022 seems to be one of the most common.
Are these defined someplace?