Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rgb pixels to standard resource colors name string ?

3 views
Skip to first unread message

Dr d b karron

unread,
Aug 1, 2002, 2:37:32 AM8/1/02
to
Given a Color (r,g,b triple), how to i get the NAME ? (opposite of given a
name, look up the r,g,b triple ).
Where are the names defined by the X server ?
I am not now interested in ICCS color matching or interpolation ...

for OPenGL, how to you specify the Alpha in a colormap ?


Eltjo Voorhoeve

unread,
Aug 1, 2002, 6:20:16 AM8/1/02
to

Well, I don't know about the triple, but the rgb values for X windows
are defined in rgb.txt. This file is mostly located in
/usr/local/lib/X11, but on my machine it is located on /usr/lib/X11.
Just try "find /usr -local -name rgb.txt" to find it.

Eltjo.

0 new messages