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:
| Number | Name |
| 0 | Black |
| 1 | Dark Blue |
| 2 | Dark Green |
| 3 | Dark Aqua |
| 4 | Dark Red |
| 5 | Dark Violet |
| 6 | Dark Yellow (or Orange) |
| 7 | Gray |
| 8 | Dark Gray |
| 9 | Blue |
| 10 | Green |
| 11 | Aqua |
| 12 | Red |
| 13 | Violet |
| 14 | Yellow |
| 15 | White |
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 ]