From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: alpha support for colors Date: Tue, 30 Oct 2012 07:51:58 +0100 Message-ID: References: <87wqy8n2tk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351579945 10159 80.91.229.3 (30 Oct 2012 06:52:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2012 06:52:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: aaditya sood Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 07:52:34 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TT5ge-0006E8-TG for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2012 07:52:33 +0100 Original-Received: from localhost ([::1]:48947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT5gW-00074A-BD for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2012 02:52:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT5gU-00073A-3M for emacs-devel@gnu.org; Tue, 30 Oct 2012 02:52:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TT5gS-00083O-QM for emacs-devel@gnu.org; Tue, 30 Oct 2012 02:52:21 -0400 Original-Received: from mx1.bahnhof.se ([213.80.101.11]:56248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT5gS-000820-JU for emacs-devel@gnu.org; Tue, 30 Oct 2012 02:52:20 -0400 Original-Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx1-reinject (Postfix) with ESMTP id 39E6E2954D0; Tue, 30 Oct 2012 07:52:11 +0100 (CET) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MF1) Original-Received: from mf1.bahnhof.se ([127.0.0.1]) by localhost (mf1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20UKGRi5sV-8; Tue, 30 Oct 2012 07:52:09 +0100 (CET) Original-Received: from exodia.verona.se (h-235-102.a149.priv.bahnhof.se [85.24.235.102]) by mf1.bahnhof.se (Postfix) with ESMTP id 4D386AEA875; Tue, 30 Oct 2012 07:52:08 +0100 (CET) Original-Received: from chopper.vpn.verona.se (DIR-655.verona.se [192.168.200.86]) by exodia.verona.se (Postfix) with ESMTP id B83F44E02DB; Tue, 30 Oct 2012 07:51:58 +0100 (CET) In-Reply-To: (aaditya sood's message of "Tue, 30 Oct 2012 05:02:56 +0000 (UTC)") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-Received-From: 213.80.101.11 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154583 Archived-At: aaditya sood writes: > Chong Yidong gnu.org> writes: > >> >> aaditya sood 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