all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: min-colors 88
Date: Thu, 27 Jan 2022 13:59:18 +0100	[thread overview]
Message-ID: <874k5pgwrd.fsf@zoho.eu> (raw)
In-Reply-To: MuQL9Cu--3-2@tutanota.com

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




  parent reply	other threads:[~2022-01-27 12:59 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-27  6:14 min-colors 88 fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27  6:33 ` Yuri Khan
2022-01-27 11:48   ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 12:10   ` Emanuel Berg via Users list for the GNU Emacs text editor
     [not found] ` <CAP_d_8U3E=FAQJ7XiNMnCi-Y4Gneo69KmEKVTuWWHOA7EVz7Gg@mail.gmail.com-MuPEX1J--7-2>
2022-01-27  6:39   ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27  6:46 ` Eli Zaretskii
2022-01-27  8:43   ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27  9:56     ` Eli Zaretskii
2022-01-27 10:44       ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27 10:54         ` Bastian Beranek
2022-01-27 11:01         ` Eli Zaretskii
2022-01-27 11:43           ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27 11:49             ` Eli Zaretskii
2022-01-27 12:27               ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 12:59             ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2022-01-27 11:47           ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27 11:50             ` Eli Zaretskii
2022-01-27 13:00               ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 13:03               ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27 13:33                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 15:14                 ` Eli Zaretskii
2022-01-27 18:09                   ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27 18:30                     ` Eli Zaretskii
2022-01-27 18:43                       ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 18:46                       ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27 19:46                         ` Eli Zaretskii
2022-01-27 18:47                       ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-28  7:58                         ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28  8:07                           ` Eli Zaretskii
2022-01-28  8:59                             ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 11:36                               ` Eli Zaretskii
2022-01-28 11:54                                 ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 12:16                                   ` Eli Zaretskii
2022-01-28 12:55                                     ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 13:19                                       ` Eli Zaretskii
     [not found]                                     ` <MuVkMCN--3-2@tutanota.com-MuVxLzA----2>
2022-01-28 13:55                                       ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 21:27                                         ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-28 12:53                                 ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 13:17                                   ` Eli Zaretskii
2022-01-28 13:49                                     ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 14:34                                       ` Eli Zaretskii
2022-01-28 15:12                                         ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 16:56                                           ` Eli Zaretskii
2022-01-28 21:21                           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 18:42                     ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 11:59           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 11:50   ` Emanuel Berg via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874k5pgwrd.fsf@zoho.eu \
    --to=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.