Re: Retrieving color names and hex values using list-colors-display for coding purposes

Eli Zaretskii <[email protected]> Thu, 16 Jul 2026 18:35:54 +0300
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
> Date: Thu, 16 Jul 2026 14:22:32 +0000
> From: Heime <[email protected]>
> Cc: [email protected]
> 
> On Thursday, July 16th, 2026 at 5:42 PM, Eli Zaretskii <[email protected]> wrote:
> 
> > > Date: Thu, 16 Jul 2026 02:56:34 +0000
> > > From: Heime <[email protected]>
> > >
> > >
> > > How can I get list of colour names and hex numbers (list-colors-display)
> > > that I can then use in my code with a loop.
> >
> > The function defined-colors will return the list of names of supported
> > colors.  The function color-values will return the RGB triplet for the
> > given color.
> 
> How does the computation for white give 65535 ?
> 
> "white" 65535 65535 65535

I don't understand the question.  What did you expect instead?