From: David De La Harpe Golden <david@harpegolden.net>
To: Adrian Robert <adrian.b.robert@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Changes 2009-07-15/16 in branch?
Date: Tue, 28 Jul 2009 21:33:21 +0100 [thread overview]
Message-ID: <4A6F6091.1000906@harpegolden.net> (raw)
In-Reply-To: <EFBC3E4E-8739-4B16-8797-D9CA8BC290CD@gmail.com>
Adrian Robert wrote:
> This sort of thing [in-emacs alphablending] would likely layer
> over alpha support at the lower level such as that provided by the NS
port.
Not necessarily at all, all realised colors could be without alpha,
the idea was raised in the context of 256-color terminal users in fact
where alpha computations would be internal to emacs.
(otoh might as well pass it through if it's also there at the OS level,
but that would just be a "final alpha" as an output of the blending
process).
> Does emacs support rgb(r, g, b) or rgb:r/g/b already?
>
The latter on X11, but N.B. it's really X11 itself supporting it, not
emacs - i.e. emacs directly asks X11 for colors via the libX11
XParseColor() API [1] (internally emulated on most other platforms and
text terminals IIRC)
X11 supports a range of device-dependent and (rather obscure for most
people) device-independent color specification strings, as well as
previously mentioned well-known and user-defined names for those colors.
(None include alpha since alpha isn't historically part of the X color)
Given your interest is alpha and hsv (hsl is neater...), maybe imitating
the CSS2/3 syntax which includes alpha might be better - and is more
likely to avoid clashing if X.org extend XParseColor() one fine day.
CSS syntax could also serve to indicate an sRGB colorspace
interpretation of rgb triples.
rgb()
rgba()
hsl()
hsla()
[1]
http://linux.die.net/man/3/xparsecolor
e.g.
rgb:<red>/<green>/<blue>
rgbi:<red>/<green>/<blue>
CIEXYZ:<X>/<Y>/<Z>
CIEuvY:<u>/<v>/<Y>
CIExyY:<x>/<y>/<Y>
CIELab:<L>/<a>/<b>
CIELuv:<L>/<u>/<v>
TekHVC:<H>/<V>/<C>
next prev parent reply other threads:[~2009-07-28 20:33 UTC|newest]
Thread overview: 80+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-23 11:22 Changes 2009-07-15/16 in branch? Adrian Robert
2009-07-23 12:46 ` YAMAMOTO Mitsuharu
2009-07-23 15:30 ` Stefan Monnier
2009-07-24 0:23 ` YAMAMOTO Mitsuharu
2009-07-24 1:09 ` Stefan Monnier
2009-07-24 1:27 ` YAMAMOTO Mitsuharu
2009-07-24 1:37 ` Stefan Monnier
2009-07-24 2:20 ` YAMAMOTO Mitsuharu
2009-07-24 3:17 ` Stefan Monnier
2009-07-24 3:35 ` YAMAMOTO Mitsuharu
2009-07-24 3:44 ` Jason Rumney
2009-07-24 4:12 ` YAMAMOTO Mitsuharu
2009-07-25 2:13 ` YAMAMOTO Mitsuharu
2009-07-26 2:22 ` Richard Stallman
2009-07-26 2:35 ` YAMAMOTO Mitsuharu
2009-07-26 3:31 ` Miles Bader
2009-07-26 3:45 ` YAMAMOTO Mitsuharu
2009-07-27 2:44 ` Richard Stallman
2009-07-27 3:20 ` YAMAMOTO Mitsuharu
2009-07-27 17:41 ` Richard Stallman
2009-07-27 18:41 ` Clifford Wulfman
2009-07-28 4:37 ` Richard Stallman
2009-07-28 13:18 ` Clifford Wulfman
2009-07-28 17:14 ` Richard Stallman
2009-07-28 18:39 ` Alfred M. Szmidt
2009-07-28 20:31 ` Ian Eure
2009-08-01 3:21 ` Richard Stallman
2009-08-01 4:10 ` Ian Eure
2009-08-01 6:28 ` Stephen J. Turnbull
2009-08-02 4:44 ` Richard Stallman
2009-07-28 22:05 ` James Cloos
2009-07-29 20:13 ` Richard Stallman
2009-07-29 22:05 ` YAMAMOTO Mitsuharu
2009-07-30 7:53 ` YAMAMOTO Mitsuharu
2009-07-30 14:01 ` Chong Yidong
2009-07-31 1:56 ` YAMAMOTO Mitsuharu
2009-07-27 20:14 ` David De La Harpe Golden
2009-07-28 6:10 ` YAMAMOTO Mitsuharu
[not found] ` <EFBC3E4E-8739-4B16-8797-D9CA8BC290CD@gmail.com>
2009-07-28 20:33 ` David De La Harpe Golden [this message]
2009-07-28 0:53 ` YAMAMOTO Mitsuharu
2009-07-28 17:14 ` Richard Stallman
2009-07-24 19:25 ` Stefan Monnier
2009-07-29 0:22 ` YAMAMOTO Mitsuharu
2009-07-29 1:12 ` Chong Yidong
2009-07-29 1:18 ` YAMAMOTO Mitsuharu
2009-07-29 4:48 ` YAMAMOTO Mitsuharu
2009-07-29 1:29 ` YAMAMOTO Mitsuharu
2009-07-24 14:34 ` Adrian Robert
2009-07-25 1:15 ` YAMAMOTO Mitsuharu
2009-07-25 4:55 ` Richard Stallman
2009-07-25 16:59 ` Adrian Robert
2009-07-27 2:43 ` Richard Stallman
2009-07-27 3:22 ` Adrian Robert
[not found] ` <E1MW1sm-0000lL-4K@fencepost.gnu.org>
2009-07-29 14:08 ` Harald Hanche-Olsen
2009-07-29 17:18 ` Stefan Monnier
2009-07-30 7:35 ` David Kastrup
2009-07-30 13:31 ` Harald Hanche-Olsen
2009-07-28 18:25 ` Harald Hanche-Olsen
2009-07-29 2:34 ` Stephen J. Turnbull
2009-07-29 2:41 ` Lennart Borgman
2009-07-29 2:56 ` Harald Hanche-Olsen
2009-07-29 3:33 ` Stephen J. Turnbull
2009-07-29 20:14 ` Richard Stallman
2009-07-29 20:26 ` Chad Brown
2009-07-30 15:35 ` Richard Stallman
2009-07-30 16:37 ` Harald Hanche-Olsen
2009-07-29 20:31 ` Harald Hanche-Olsen
2009-07-30 15:35 ` Richard Stallman
2009-07-30 16:22 ` Harald Hanche-Olsen
2009-08-01 3:21 ` Richard Stallman
2009-08-01 7:45 ` CHENG Gao
2009-08-01 9:36 ` CHENG Gao
2009-08-02 4:43 ` Richard Stallman
2009-08-02 7:06 ` CHENG Gao
2009-08-03 16:17 ` Richard Stallman
2009-08-03 20:03 ` CHENG Gao
2009-07-29 14:12 ` Stefan Monnier
2009-07-27 0:35 ` YAMAMOTO Mitsuharu
2009-07-27 3:12 ` Adrian Robert
2009-07-29 3:23 ` Sean O'Rourke
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=4A6F6091.1000906@harpegolden.net \
--to=david@harpegolden.net \
--cc=adrian.b.robert@gmail.com \
--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.