From: Eli Zaretskii <eliz@gnu.org>
To: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Question: How does color-lighten-name work?
Date: Fri, 28 Oct 2022 10:09:34 +0300 [thread overview]
Message-ID: <83r0ysjufl.fsf@gnu.org> (raw)
In-Reply-To: <CAO48Bk8dXokKcvc+hgDOqznyFHxVP8ZGwcL0w0SrNsdZ6-ZbKw@mail.gmail.com> (message from Pedro Andres Aranda Gutierrez on Fri, 28 Oct 2022 08:23:16 +0200)
> From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> Date: Fri, 28 Oct 2022 08:23:16 +0200
>
> (require 'color)
> (let ((newbg "#102030"))
> (message "newbg: %s" newbg)
> (setq newbg (color-lighten-name newbg 10))
> (message "newbg: %s" newbg))
>
> evaluated in the *scratch* buffer. will print the following:
>
> newbg: #102030
> newbg: #11ab23563501
>
> Shouldn't the second colour spec have only 3 bytes?
No, it uses the default format of 4 digits per component.
We could perhaps add an additional optional argument to specify how
many digits per component to produce.
next prev parent reply other threads:[~2022-10-28 7:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-28 6:23 Question: How does color-lighten-name work? Pedro Andres Aranda Gutierrez
2022-10-28 7:09 ` Eli Zaretskii [this message]
2022-10-28 8:09 ` Robert Pluim
2022-10-28 11:26 ` Eli Zaretskii
2022-10-28 14:46 ` Pedro Andres Aranda Gutierrez
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=83r0ysjufl.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=paaguti@gmail.com \
/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.