| Search Locate Previous Next | Contents |
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:
| # | Code | Name | |
| 0 | ne | Black | |
| 1 | re | Maroon | |
| 2 | gr | Green | |
| 3 | or | Olive | |
| 4 | bl | Navy | |
| 5 | ma | Purple | |
| 6 | cy | Teal | |
| 7 | wh | Gray | |
| 8 | NE | Silver | |
| 9 | RE | Red | |
| 10 | GR | Lime | |
| 11 | YE | Yellow | |
| 12 | BL | Blue | |
| 13 | PU | Fuchsia | |
| 14 | CY | Aqua | |
| 15 | WH | White |
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.