[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: min-colors 88
From: |
Emanuel Berg |
Subject: |
Re: min-colors 88 |
Date: |
Thu, 27 Jan 2022 19:42:51 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
fatiparty--- via Users list for the GNU Emacs text editor wrote:
> I could be mistaking the interpretation of the hex-codes to
> the number of colours available.
Notation: #RRGGBB
Each channel: 1 byte = 8 bits
e.g., say "winter blue" is #385d7d, that is binary
111000 1011101 1111101
As you see, there are
(16^2)^3 = 16 777 216
colors available!
(or computed from the 24-bit binary,
2^24 = the same)
However, in _another_ sense there are (or can be) just 8
colors available, and 8 bright versions of them! Here are, for
example, mine! I have them in a tailored file so they are easy
to see and edit, they are then processed to the less-palatable
original Linux format, and the colors appear in the
ttys/Linux VTs/the console.
So the file:
normal bright
bk r g y bl m c w bk r g y bl m c w
r 0 255 0 190 100 180 0 150 115 255 0 255 125 250 90 210
g 0 50 155 190 100 105 180 150 115 80 185 127 125 90 255 180
b 0 50 0 0 255 0 180 150 115 80 0 0 255 250 255 140
See, there are 8 colors! ........ OK, 16 then!
But you also see that each channel is 0-255. So then we are
back at
256^3 = 16 777 216
colors available!
--
underground experts united
https://dataswamp.org/~incal
- Re: min-colors 88, (continued)
- min-colors 88, fatiparty, 2022/01/28
- Re: min-colors 88, Eli Zaretskii, 2022/01/28
- min-colors 88, fatiparty, 2022/01/28
- Re: min-colors 88, Eli Zaretskii, 2022/01/28
- min-colors 88, fatiparty, 2022/01/28
- Re: min-colors 88, Eli Zaretskii, 2022/01/28
- Re: min-colors 88, Emanuel Berg, 2022/01/28
- Re: min-colors 88,
Emanuel Berg <=
- Re: min-colors 88, Emanuel Berg, 2022/01/27
- Re: min-colors 88, Emanuel Berg, 2022/01/27
Re: min-colors 88, Emanuel Berg, 2022/01/27