COLOUR - v14


colour                         <i>|b|h|cl|cr, {,r=<n>} {,g=<n>} {,b=<n>} {,s=<v1>\<v2>}

or

colour                         ?

Function

Redefine the colour of a pen number, background, highlight or polling rubber box.  Define a gradient background for the OpenGL window.

 

or

List the current RGB values in the colour table.

or

Change the current colour chart by interactive slider selection.

Parameters

i

The pen number. i should be in the range 0 to 255. (Update V12)

 

 

b

The background colour, the same as i = 0.
When in OpenGL mode COLOUR=B can be used to define the bottom colour of the gradient background colour. (See examples and h parameter for details)(Introduced 12.5.3)

 

 

h

The highlight colour for the current selection in popup menus.

When in OpenGL mode COLOUR=H can be used to define the top colour of the gradient background colour. (See examples and b parameter for details)(Introduced 12.5.3)

 

 

cr

Define the colour for the POLLING rubber-box when it is expanded to the right.  An INI/Reg setting RUBBERBOX needs to be enabled.   Update 12.4.0 (b01)

COLOUR CR,R=<value>,G=<value>,B=<value>

 

 

cl

Define the colour for the POLLING rubber-box when it is expanded to the left.  An INI/Reg setting RUBBERBOX needs to be enabled. Update 12.4.0 (b01)

COLOUR CL,R=<value>,G=<value>,B=<value>

 

 

r=

The percentage of red in the colour. If omitted the value 0 is assumed.

 

 

g=

The percentage of green in the colour. If omitted the value 0 is assumed.

 

 

b=

The percentage of blue in the colour. If omitted the value 0 is assumed.

 

 

s=

Define the number of shades for the colour, used by the SHADE command where value v1 >=256
 

?

List the current RGB values in the colour table

Examples

colour 1, r=100

COLOUR 52,R=100,S=250\340

colour b, r=75, g=75, b=30

colour 2, r=80, g=60, s=32\64

colour ?

colour cl,r=75, g=75, b=75

colour cr,r=75, g=75, b=75

 

Define and display a gradient colour background for OpenGL window (Introduced 12.5.3)

COL B,r=0,g=0,b=0

COL H,r=100,g=100,b=100

PAINT

Notes

The limits on number of colours defined in this command are the same limits that apply to all relevant commands that use the col= primer as part of their syntax to define a colour i.e. FACE, SOLID, PIPES, etc.

 

Shades for basic 256 pens in a different range can be set and so the application can issue commands like:

COLOUR 52,R=100,S=200\340

to indicate that colour 52 is RED and has shades ranging from index 300 to index 340 in the currently defined colourmap.

 

This listing can also be obtained using the STATUS 8 command. This command will have effect only at installations with colour monitors.

 

The form of interaction to change the colours is machine dependent.

 

Update 11.6.6 (b01): The title of the active graphic window is now highlighted using to the following criteria: use the primer B=<pen> to specify the color of the border of a viewport (Eagle window); now the same color is used for the caption text (title or message).  So it is possible to use white for the caption text to achieve b/w and w/b highlighting.

See also

let(col), nib, pen, poposition, shade, polling