Enters a colour into an graphics device’s palette
A colour is specified either by the giving the red, green, blue intensities; or named colours.
A named colour from the standard colour set, which may be abbreviated. If the
abbreviated name is ambiguous the first match (in alphabetical order) is selected. The
case of the name is ignored. Some examples are "Pink"
, "Yellow"
, "Aquamarine
", and
"Orchid"
.
Normalised red, green, and blue intensities separated by commas or spaces. Each value
must lie in the range 0.0–1.0. For example, "1.0,1.0,0.5"
would give a pale
yellow.
An HTML colour code such as #ff002d
.
[
Current graphics device]
The effects of this command will only be immediately apparent when run on X windows which have 256 colours (or other similar pseudocolour devices). On other devices (for instance, X windows with more than 256 colours) the effects will only become apparent when subsequent graphics applications are run.