all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: aaditya sood <aaditya@sood.net.in>
To: emacs-devel@gnu.org
Subject: Re: alpha support for colors
Date: Tue, 30 Oct 2012 07:37:07 +0000 (UTC)	[thread overview]
Message-ID: <loom.20121030T081948-290@post.gmane.org> (raw)
In-Reply-To: m37gq88nap.fsf@chopper.vpn.verona.se


Hi,

 <joakim <at> verona.se> writes:

> 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)

IMO you're spot on. We'd want to do a composition of all the faces
that exist for a particular character, taking into account things like
alpha values.

I think a good use case is things like flymake error faces. I want my
error lines to be more "reddish" while still retaining the original
font lock highlighting.

>> 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.

:)

> My suggestion is to make a separate branch where you hack a bit to
> try to gauge the complexity.

That is my intent. However I'd like to discuss some of the design
issues, or where to start hacking beforehand. This is to reduce the
complexity of merging into trunk at a future date.

regards
--
aaditya




  reply	other threads:[~2012-10-30  7:37 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
2012-10-30  7:37       ` aaditya sood [this message]
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=loom.20121030T081948-290@post.gmane.org \
    --to=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.