Defining Colours
- Last UpdatedJan 13, 2023
- 3 minute read
Keywords
COLOUR ACTIVE CE VISIBLE AIDS
Description
These commands allow colours to be defined so that the status of different types of item in the display may be distinguished by means of colour. The colours used have default settings, but these may be redefined.
The colours may be assigned by using the COLOUR command to define the Red-Green-Blue mix for a colour number or to assign a predefined colour mix by name. PARAGON allows the use of 100 user-definable colours, plus some specific ones which are assigned to items which need to be readily distinguishable in the display.
Definitions
-
The Active colour is used for the Catalog component being worked on (the significant element, for example, ELBO, VALV). If the current element is a geometric primitive, the active colour is used for all primitives owned by the significant element except the current primitive.
-
The CE colour is used for the element currently being accessed (i.e. the element highlighted in the Members list). This may be either a primitive or a significant element.
-
The Visible colour is used for any element in the display other than those to which the active or CE colours apply.
-
The Active and Visible elements together constitute the Draw List.
The predefined colour mixes which you may specify by name are as follows:
|
Colour |
Red |
Green |
Blue |
|---|---|---|---|
|
black |
0 |
0 |
0 |
|
white |
100 |
100 |
100 |
|
whitesmoke |
96 |
96 |
96 |
|
ivory |
93 |
93 |
88 |
|
grey |
66 |
66 |
66 |
|
lightgrey |
75 |
75 |
75 |
|
darkgrey |
32 |
55 |
55 |
|
darkslate |
18 |
31 |
31 |
|
red |
80 |
0 |
0 |
|
brightred |
100 |
0 |
0 |
|
coralred |
80 |
36 |
27 |
|
tomato |
100 |
39 |
28 |
|
plum |
55 |
40 |
55 |
|
deeppink |
93 |
7 |
54 |
|
pink |
80 |
57 |
62 |
|
salmon |
98 |
50 |
44 |
|
orange |
93 |
60 |
0 |
|
brightorange |
100 |
65 |
0 |
|
orangered |
100 |
50 |
0 |
|
maroon |
56 |
14 |
42 |
|
yellow |
80 |
80 |
0 |
|
gold |
93 |
79 |
20 |
|
lightyellow |
93 |
93 |
82 |
|
lightgold |
93 |
91 |
67 |
|
yellowgreen |
60 |
80 |
20 |
|
springgreen |
0 |
100 |
50 |
|
green |
0 |
80 |
0 |
|
forestgreen |
14 |
56 |
14 |
|
darkgreen |
18 |
31 |
18 |
|
cyan |
0 |
93 |
93 |
|
turquoise |
0 |
75 |
80 |
|
aquamarine |
46 |
93 |
78 |
|
blue |
0 |
0 |
80 |
|
royalblue |
28 |
46 |
100 |
|
navyblue |
0 |
0 |
50 |
|
powderblue |
69 |
88 |
90 |
|
midnight |
18 |
18 |
31 |
|
steelblue |
28 |
51 |
71 |
|
indigo |
20 |
0 |
40 |
|
mauve |
40 |
0 |
60 |
|
violet |
93 |
51 |
93 |
|
magenta |
87 |
0 |
87 |
|
beige |
96 |
96 |
86 |
|
wheat |
96 |
87 |
70 |
|
tan |
86 |
58 |
44 |
|
sandybrown |
96 |
65 |
37 |
|
brown |
80 |
17 |
17 |
|
khaki |
62 |
62 |
37 |
|
chocolate |
93 |
46 |
13 |
|
darkbrown |
55 |
27 |
8 |
The default colour assignments are:
|
Colour No |
Colour |
|---|---|
|
Current element |
yellow |
|
Visible elements |
lightgrey |
|
1 |
grey |
|
2 |
red |
|
3 |
orange |
|
4 |
yellow |
|
5 |
green |
|
6 |
cyan |
|
7 |
blue |
|
8 |
violet |
|
9 |
brown |
|
10 |
white |
|
11 |
pink |
|
12 |
mauve |
|
13 |
turquoise |
|
14 |
indigo |
|
15 |
black |
|
16 |
magenta |
Examples
|
COL 5 DARKGREEN |
Colour 5 will be changed to dark green |
|---|---|
|
COL 3 MIX RED 50 GRE 50 BLU 5 |
Colour 3 will change to the specified mix of red, green and blue |
|
COL VISIBLE BRIGHTRED |
Sets the colour for displaying components to bright red |
Note:
When colours are mixed in their Red, Green and Blue constituents, the command line
must contain values for all three constituents in the correct order. The numbers entered
for the relative proportions of the basic colours must each be in the range 0-100,
but they are not percentages of the overall colour and so do not need to add up to
100.
Command Syntax
>-- COLour -+- integer -.
| |
|- ACTIVE --|
| |
|- CE ------|
| |
‘- VISIble -+- colour_name -->
|
‘- MIX RED integer GREen integer BLUe integer -->
where colour_name is the name of any of the predefined colour mixes listed above.
Querying
>-- Q COLour --+-- integer -----.
| |
|-- ACTIVE ------|
| |
|-- CE ----------|
| |
‘-- VISIble -----+-->