Search Locate Previous Next Contents

Colour Table

Any of the NewLeaf commands which take colours as argument can take either an integer argument, a short code, a colour name or a hex string of the form '#FF00CC' which is the syntax normally used in web pages. The colours corresponding to the numbers 0-15 are:

#CodeName 
0neBlack 
1reMaroon 
2grGreen 
3orOlive 
4blNavy 
5maPurple 
6cyTeal 
7whGray 
8NESilver 
9RERed 
10GRLime 
11YEYellow 
12BLBlue 
13PUFuchsia 
14CYAqua 
15WHWhite 

The two-letter (case-sensitive) short-codes are included for compatibility with older NewLeaf applications only. From now on it is better to use the standard internet names for the colours, as the old short-codes will eventually be de-supported. Higher numbers are taken as an RGB composite, so that (for example) 1234567 is a pastel green. Alternatively you can give the HTML-style colour strings such as:

leaf.table.TColour'#BB7B27'
leaf.table.TBCol'#064606' 

This will set the table titles to orange text on a dark green background.



Continue to: Causeway Graphical Systems Ltd
© Copyright Causeway Graphical Systems Ltd 2001