Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: ddhill@mytoy.zk3.dec.com (Dave Hill)
Subject: Re: rgb.txt
Date: 12 Jan 1995 17:42:38 GMT	[thread overview]
Message-ID: <3f3pme$tka@lead.zk3.dec.com> (raw)
In-Reply-To: 3eh2hl$7a1@reseau.cict.fr

In article <3eh2hl$7a1@reseau.cict.fr>, manu@ecstasy.cemes.fr (Emmanuel Courcelle) writes:
|> Hello, evrybody.
|> 
|> I would like to  introduce a new color in  the rgb database, on  a Dec
|> osf/1 2.0 machine. How do I do that ???
|> 
|> I already introduced the color in the rgb.txt file with an editor, but
|> I do not know how  to update the  rgb.pag and rgb.dir files (all those
|> files are under /usr/lib/X11).
|> 

The rgb command is not normally installed.  As distributed from the X
Consortium, the installation procedures do not install the command.
The rgb command is only used for compiling the rgb database when
building the X window system.

As of X11R5, the functionality of the rbg command has been superseded
by the X Color Management System (Xcms).  Instead of adding to the rgb
database, one can either create a color definition file in
/usr/lib/X11/Xcms.txt or one can use a personal color definition file
defined in the value of the  XCMSDB environment variable.

The old (R4) color method of defining colors (a '#' followed by a hex
number) can still be used, but there are many color-space formats
recognized.   Here is an example Xcms.txt data file:


    XCMS_COLORDB_START 0.1
    mygreen	RGBi:0.1/0.9/0.1
    UglyGreen	TekHVC:88.00004/72.66564/38.25869
    myPurple	#c01095
    XCMS_COLORDB_END

Note that you must use a tab character between the color name and the start
of the color specification.

Note that it is no longer necessary to compile the color data file in any
way.  Simply the existance of the /usr/lib/X11/Xcms.txt file or the file
referred to in the XCMSDB environment variable is sufficient.

For more information on Xcms, refer to Chapter 6 the "X Window System
Administrator's Guide" published by O'Reilly & Associates, Inc. and
distributed with the DEC OSF/1 documentation.




      parent reply	other threads:[~1995-01-12 17:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-01-05 15:17 rgb.txt Emmanuel Courcelle
1995-01-06 15:42 ` rgb.txt Mark Wassell
1995-01-12 17:42 ` Dave Hill [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox