This is a Unix script to help generate O datablocks of colour codes. In O, the user is free to associate red-green-blue (RGB) mixes with colour names. This program takes a file of RGB mixes and names, and outputs a file containing 2 O datablocks. The script is useful if you want to add or remove colours, or to load up colours supported by your own X system:
% /usr/bin/X11/showrgb \verb|>| rgb.txt % cat rgb.txt 220 220 220 gainsboro 240 255 240 honeydew 255 228 225 mistyrose 112 128 144 slategrey 135 206 235 skyblue 176 196 222 light steel blue 224 255 255 lightcyan 50 205 50 limegreen 154 205 50 yellowgreen [Output edited] % mkcol rgb.txt \verb|>| rgb. % cat rgb.o .colour_names t 224 12 alice_blue aliceblue antique_white [Output edited] white white_smoke whitesmoke yellow yellow_green yellowgreen .colour_rgb r 672 (3f7.4) 0.9412 0.9725 1.0000 0.9412 0.9725 1.0000 0.9804 0.9216 0.8431 [Ouput edited] 0.2510 0.8784 0.8157 0.9333 0.5098 0.9333 %