Referencing the 16 "Standard" Colors


The 16 "Standard" colors are specified by a color number, as shown in the following illustration:

As of Version 10.2.18 and later, each of these 16 colors can usually be expressed either as a number, or by its name:

NumberName
0Black
1Dark Blue
2Dark Green
3Dark Aqua
4Dark Red
5Dark Violet
6Dark Yellow
(or Orange)
7Gray
8Dark Gray
9Blue
10Green
11Aqua
12Red
13Violet
14Yellow
15White

Notice that the first letter of each word in the color's name must be upper case.

Example:

Call solid color (Dark Green)    
Call solid circle (300, 200, 100)

The use of color names is intended primarily as a convenient way of directly specifying colors to tasks and functions in the system library (as was shown in the above example). However, when used under other circumstances, a color's name might generate an error message. For example, the statements:

Set c = Dark Green  
Call solid color (c)

will not compile (unless the "c" container has been previously defined elsewhere in the program). If you encounter any problems when using a color's name, simply place a pair of parentheses around the name:

Set c = (Dark Green)
Call solid color (c)

In fact, a good "rule of thumb" would be: Whenever you specify a color by name, always enclose the name in a separate pair of parentheses (even when it might not be necessary to do so).

Examples:

Call solid color ((Dark Green))  

Call rocket (300, 200, (Red)) @  

If (z = (Blue)) Set z = (Yellow) 



  [ Webmaster | FAQ's | Home Page | Contact Us ]