next up previous contents index
Next: The Notes menu Up: The Paint commands Previous: Paint_colour

Personalized Colours

  The colours available to the user are stored in the O database, and can be changed. There are two datablocks, one containing the names, .colour_names, and one containing the corresponding RGB triplets, .colour_rgb. The latter is a real datablock, and the values are     normalized to the range [0:1]. You can easily configure your own colours from the standard X colour database. First make a text copy onto your working directory:

% /usr/bin/X11/showrgb > myrgb.txt

Edit this file to weed out the colours you dont need. There will be quite a few; the XR11.4 database contains > 200. If you want a feel for the look of the different colours, use the UNIX shell script dispcol:  

% dispcol < myrgb.txt > tmp

The file tmp contains a series of ODL drawing instructions that can be displayed in O using the Draw command:

O > draw tmp

There is another shell script, mkcol, that will generate the relevant datablocks.  

% mkcol < myrgb.txt > junk

Then, inside O, read the file using Read_formatted:

O >  read junk

and you are set to go.