help-gnu-emacs
[Top][All Lists]
Advanced

[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 12:48:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Yuri Khan wrote:

>> I keep seeing 88 for min-colors. I wonder if a different
>> number would be more appropriate, as it seems that 88 is
>> quite arbitrary.
>
> Historically, there existed terminals that supported
> a maximum of 8 colors, 16 colors, 88 colors (basic 16 +
> 4×4×4 color cube + 8 grays?), then 256 colors (basic 16 +
> 6×6×6 cube + 24 grays), and finally 24-bit color.

24-bit color, which confusingly gives you an 8-bit image, since

  $ echo $(( (2**8)**3 )) = $(( 256**3 )) # 16 777 216
              ^^^^^^^^ one byte per each RGB colors

> Unless you intend to make a color theme for wide
> distribution, I suggest configuring your own terminal
> emulators for 24-bit color and always assuming full
> color range.

The sky is the limit ...

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]