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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Returning hex value from rgb combination (each from 0 to 255)


From: Vagn Johansen
Subject: Re: Returning hex value from rgb combination (each from 0 to 255)
Date: Sat, 31 Aug 2024 19:54:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (windows-nt)

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Sat, 31 Aug 2024 17:10:27 +0000
>> From: Heime <heimeborgia@protonmail.com>
>> 
>> How can I make a function that takes r g and b values (from 0 to 255) and
>> returns the corresponding hex value ? 
>
> What is "the corresponding hex value"?
>

Probably the format used by color-rgb-to-hex

(color-rgb-to-hex 1 0 0 2) => "#ff0000"


-- 
Vagn Johansen




reply via email to

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