From: joakim@verona.se
To: aaditya sood <aaditya@sood.net.in>
Cc: emacs-devel@gnu.org
Subject: Re: alpha support for colors
Date: Tue, 30 Oct 2012 07:51:58 +0100 [thread overview]
Message-ID: <m37gq88nap.fsf@chopper.vpn.verona.se> (raw)
In-Reply-To: <loom.20121030T055733-613@post.gmane.org> (aaditya sood's message of "Tue, 30 Oct 2012 05:02:56 +0000 (UTC)")
aaditya sood <aaditya@sood.net.in> writes:
> Chong Yidong <cyd <at> gnu.org> writes:
>
>>
>> aaditya sood <aaditya <at> sood.net.in> writes:
>>
>> > Does emacs support alpha blending on colors on faces? In particular
>> > can I specify colors in ARGB format?
>>
>> No.
>
> Ok, I guess my googling wasn't in vain.
>
> Are people interested in this capability? I'm interested in working on this
> feature, with (hopefully) some guidance from emacs developers.
>
> If I wanted to start work on it:
>
> 1. Where should I begin?
What would the interface be? So, lets say you want an alpha component
for the foreground. try adding that somewhere in the face descriptor,
just temporarily in your own experimental branch. Then, how do you
propose to add the faces together? Let's say you add a function
blend-faces, that adds the colours together, taking in consideration the
alpha value, and creates a new face. Then you use this function to do
what you want.
(I'm just guessing what you want to do, so my advice is probably pretty lame)
> 2. Is it even do-able in terms of complexity, or will it touch the fabled and
> scary redisplay engine?
Maybe, but it's not THAT scary. It's actually pretty cool when you get
to understand it a little bit.
>
> What do people think?
>
> I've have some experience with C and elisp, but mostly an emacs user
> till date. Perhaps my chance to contribute back.
My suggestion is to make a separate branch where you hack a bit to try
to gauge the complexity.
> regards
> --
> aaditya
>
>
>
--
Joakim Verona
next prev parent reply other threads:[~2012-10-30 6:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-29 20:19 alpha support for colors aaditya sood
2012-10-30 1:52 ` Chong Yidong
2012-10-30 5:02 ` aaditya sood
2012-10-30 5:07 ` Masatake YAMATO
2012-10-30 6:51 ` joakim [this message]
2012-10-30 7:37 ` aaditya sood
2012-10-30 13:28 ` Stefan Monnier
2012-10-30 17:45 ` Eli Zaretskii
2012-10-31 2:06 ` Stephen J. Turnbull
2012-10-31 4:00 ` Eli Zaretskii
2012-10-30 17:43 ` Eli Zaretskii
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=m37gq88nap.fsf@chopper.vpn.verona.se \
--to=joakim@verona.se \
--cc=aaditya@sood.net.in \
--cc=emacs-devel@gnu.org \
/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.