home page
   
Manual page for colors(TDH)


How to specify a color

Colors may be specified by pre-defined name, by RGB specification, hexadecimal specification (like HTML), or by gray level specification.


Predefined color names

See the illustration above.
Example: dullyellow


Custom RGB specifications

If none of the pre-named colors suit, a custom RGB specification in the form of rgb:redval,greenval,blueval may be used. Values specify the red, green and blue components, and range from 0.0 to 1.0 (1.0 is brightest). No embedded spaces are allowed.

Example: rgb:0.4,0.84,0.37


Hexadecimal RGB specifications

Similarly to HTML, you can use hexadecimal 6-digit RGB color values, like this: xrgb:A0FFA0, or 12-digit values, eg. xrgb:AA00FFFFAA00.


Gray-level specifications

A gray-level specification in the form of gray:greyval . greyval ranges from 0.0 (black) to 1.0 (white). No embeddded spaces are allowed.

Example: gray:0.8


Copyright Steve Grubb


Markup created by unroff 1.0,    October 20, 2004.