![]() home page |
![]() How to specify a colorColors may be specified by pre-defined name, by RGB specification, hexadecimal specification (like HTML), or by gray level specification.Predefined color namesSee the illustration above.Example: dullyellow Custom RGB specificationsIf 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 specificationsSimilarly to HTML, you can use hexadecimal 6-digit RGB color values, like this: xrgb:A0FFA0, or 12-digit values, eg. xrgb:AA00FFFFAA00.Gray-level specificationsA 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 |