[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 13:59:18 +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:
> So one uses whatever bit format (e.g. 24-Bit Format for
> #RRGGBB) needed to store the maximum colours supported?
Total number of colors expressible by the hexadecimal #RRGGBB
notation:
$ echo $(( ((16 - 1)*16**1 + (16 - 1)*16**0 + 1)**3 ))
16 777 216
So the max value is:
$ dec2bin $(( 16 777 216 - 1 )) # [1]
11111111 11111111 11111111
which is 3*8 = 24 bits.
(Spaces added for clarity.)
[1] https://dataswamp.org/~incal/conf/.zsh/math
--
underground experts united
https://dataswamp.org/~incal
- min-colors 88, (continued)
Re: min-colors 88, Eli Zaretskii, 2022/01/27
- min-colors 88, fatiparty, 2022/01/27
- Re: min-colors 88, Eli Zaretskii, 2022/01/27
- min-colors 88, fatiparty, 2022/01/27
- Re: min-colors 88, Bastian Beranek, 2022/01/27
- Re: min-colors 88, Eli Zaretskii, 2022/01/27
- min-colors 88, fatiparty, 2022/01/27
- Re: min-colors 88, Eli Zaretskii, 2022/01/27
- Re: min-colors 88, Emanuel Berg, 2022/01/27
- Re: min-colors 88,
Emanuel Berg <=
min-colors 88, fatiparty, 2022/01/27
Re: min-colors 88, Eli Zaretskii, 2022/01/27
min-colors 88, fatiparty, 2022/01/27
Re: min-colors 88, Emanuel Berg, 2022/01/27
Re: min-colors 88, Eli Zaretskii, 2022/01/27
min-colors 88, fatiparty, 2022/01/27
Re: min-colors 88, Eli Zaretskii, 2022/01/27
Re: min-colors 88, Emanuel Berg, 2022/01/27
min-colors 88, fatiparty, 2022/01/27
Re: min-colors 88, Eli Zaretskii, 2022/01/27