color <name>{,<red>{,<green>{,<blue>}}}
or
color <name> = <ident>
Create or redefine a color identifier.
<name>
The name of the color identifier.
<red>
The red component, in the range 0 through 100. If omitted 0 is used.
<green>
The green component, in the range 0 through 100. If omitted 0 is used.
<blue>
The blue component, in the range 0 through 100. If omitted 0 is used.
<ident>
Copy the attributes of an existing color identifier into the new color identifier. All command
switches are ignored.
-hex=<num>
Define the red, green and blue components via a composite hexadecimal value
in the form 0xRRGGBB. Each component is a hex value in the range 0 through 255 (hex FF).
For example 0xFF0000 defines red.
-xc=<string>
Equate the color with one of the X Windows system colors. When this switch is
present the <red>,
<green>
and <blue>
parameters are ignored.
Color identifiers can have global or application scope, but cannot have local scope. When local color identifiers are required, string identifiers should be used to reference the colors by name.
The available X Windows colors can be found in the file $MXSYS/etc/rgb.txt, but note that the red, green and color components in the file are in the range 0 through 255.
color reddish,100,10,10
color deep_cyan,0,35,90
color grod, -xc='goldenrod'
color my_red = red
Commands: |
|
Identifiers: |
scope (atable) |
Structures: |