Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:col}
h2. Name

*col* — Set or change color

h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#ffffaa}

*col* \[*red | gre | blu | yel | tur | pin | whi | bla | bro | next | cycle*] | \[_r g b_] | \[*ran*] | \[*sel* _color\_number_] \[*nobgc*] | \[*tab* \[*ctb*] \[*poi*]]

{panel}

h2. Description

Sets the color for the next command to display in single color mode.

h2. Arguments

No argument or *next*. The color is set to the next color in the color cycle. 

*red* | *gre* | *blu* | *yel* | *tur* | *pin* | *whi* | *bla* | *bro*
{indent} The color is set to the specified name and used in the next display operation. 
{indent}

*next*  \[*init* _startcolorcycle_]
{indent} Get the next color in the color cycle of 10 colors. \[*init*] will initiate the color cycle. Default 0 unless _startcolorcycle_ is set between 0 and 10.
Using *col next* enables the user to apply the same colors in different script code.
{indent}

*cycle*  \[*init* _startcolorcycle_]
{indent} The same as *next'. Introduced for convenience in understanding menus.
{indent}

_r g b_
{indent} Enter RGB values between 0.0 and 1.0 for _r g b_. 
{indent}

*ran*
{indent} Calculate a random color to be used in the next display operation. 
{indent}

*sel* _color\_number_
{indent} Select color by its _color\_number_ from the color table. 
{indent}

*nobgc*
{indent} No background color change. Default is that a white color will change to black if the background is white or close to white. 
{indent}

*tab*
{indent} Will display the default color table used in the color cycle. The color table is formed as a stair. 
{indent}

*tab ctb*
{indent} Will display the default color table used in mapping. 
{indent}

*tab* \[*ctb*\] *poi*
{indent} Will display the color number on the color in the color table. 
{indent}

h2. See also

[pol - Polygon type display], [psc col|psc - PostScript plotting], [spe bgc|spe - Specify parameters]
{pagebreak}