DRAW Reference Manual
Colours and Styles
: Colours
Colours
DRAW allows you to draw in up to 365 colours, numbered 1 to 365. By default all 365 colour numbers have colour definitions assigned to them:
Colour numbers 1 to 16 are assigned by default to:
Colour 1
Grey
Colour 9
Brown
Colour 2
Red
Colour 10
White
Colour 3
Orange
Colour 11
Pink
Colour 4
Yellow
Colour 12
Mauve
Colour 5
Green
Colour 13
Turquoise
Colour 6
Cyan
Colour 14
Indigo
Colour 7
Blue
Colour 15
Black
Colour 8
Violet
Colour 16
Magenta
The system maintains a dictionary of 61 colour names that can be used in place of colour numbers when specifying a colour or setting the value of a colour attribute. These names (which include the 16 given), their default colour numbers and RGB values are:
COLOUR
Index
RED
GREEN
BLUE
Aquamarine
137
0
255
191
Beige
60
189
173
126
Black
15
0
0
0
Blue
7
0
0
255
Blueviolet
207
127
0
255
Brightorange
322
255
191
0
Brightred
18
255
0
0
Brown
9
104
52
0
Chocolate
55
79
39
0
Coral
356
255
127
0
Coralred
39
189
46
0
Cyan
46
0
255
255
Darkbrown
65
79
59
0
Darkgreen
125
0
79
19
Darkgrey
268
80
80
80
Darkorchid
219
141
0
189
Darkslate
146
53
79
73
Deeppink
247
255
0
127
Dimgrey
269
105
105
105
Firebrick
359
189
46
0
Forestgreen
101
31
129
0
Gold
303
255
191
0
Green
5
0
189
0
Grey
1
130
130
130
Indianred
30
189
126
126
Indigo
14
52
0
104
Ivory
61
255
255
170
Khaki
72
129
129
86
Lightblue
168
170
212
255
Lightgold
58
255
234
170
Lightgrey
271
192
192
192
Lightyellow
298
255
255
170
Limegreen
97
63
255
0
Magenta
16
255
0
255
Maroon
243
104
0
78
Mauve
12
96
0
129
Mediumaquamarine
138
170
255
234
Midnight
185
0
19
79
Navyblue
193
0
0
104
Orange
3
255
191
0
Orangered
47
255
127
0
Pink
11
189
126
141
Plum
232
129
86
129
Powderblue
158
170
234
255
Red
2
189
0
0
Royalblue
177
0
63
255
Salmon
38
255
191
170
Sandybrown
59
189
141
0
Sienna
51
129
64
0
Springgreen
127
0
255
127
Stateblue
190
126
126
189
Steelblue
190
0
141
189
Tan
49
189
141
126
Tomato
37
255
63
0
Turquoise
13
9
189
189
Violet
8
255
170
234
Wheat
48
255
212
170
White
10
255
255
255
Whitesmoke
307
255
255
255
Yellow
4
255
255
0
Yellowgreen
79
141
189
0
Note:
The actual RGB definitions of these colours have changed over time and this has led to duplication. White and Whitesmoke are both mapped to 255, 255, 255 and Orange, Brightorange and Gold are mapped to 255, 191, 0. The redundant colour names have been maintained for compatibility with previous versions of AVEVA Software. Refer to
Colour Mapping in DXF/DWG and DGN Export
for information on how colours are handled in export.
White and Black will render on-screen so that they are visible: when the background colour is white, white is rendered as black, and vice-versa.
It is possible to change the definitions of colours 1-16 using the COLOUR command. The syntax can take three forms, either specifying a predefined name from the system colour dictionary, or a percentage mixture, or an RGB definition. Typical examples are:
COLour 3 STEELBLUE
COLour 12 MIX RED 80 GREen 50 BLUe 50
COLour 14 RGB 0, 141, 188
Where a percentage mixture is specified all three values must be in the range 0-100. Where an RGB definition is given all three values must be in the range 0-255.
Colour definitions can be queried thus:
Q COLour 12
Q COLour RGB 55
Colour attributes can be assigned values by number or name, thus:
LLCOLOUR 54
TXCOLOUR NAVYBLUE
When a colour attribute is queried, the name (for example, ‘orange’) is returned if available, otherwise the colour number is returned. If a number is specifically required (regardless of whether a name is available, a special colour-number pseudo-attribute can be used. The names of these are derived from the normal colour attributes, for example, LLCONU/MBER, TXCONU/MBER, FCONUM/BER.
It is possible to set all colour attributes on an element to the same value by the ALLCOLOURS command. As some DRAW elements have many such attributes this is a convenient way of changing them to the same colour quickly. To set all the text colours and all the line colours separately the TEXTCOLOURS and LINECOLOURS commands can be used, thus, for example:
ALLCOLOURS
RED
TEXTCOLOURS
7
LINECOLOURS
GREEN
The list of colour attributes are listed. The special colour attribute values of DEFAULT, TEMPLATE, and UNCHANGED can also be specified but these are only valid in particular circumstances.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.