C Definition
Not Applicable
Pascal Definition
Not Applicable
Description
Set Line Color is used to set the color that will be the default for subsequent graphic drawing activity. A Color is best indicated by a predefined color constant.
This color will remain in effect until changed by another Set Line Color command.
Escapes
The Set Line Color block does not produce any escapes.
Examples
This example draws four walking lines in different colors:
... producing this:
It is more efficient to do all of the lines for any one color in a single loop and move on to the next color with a separate loop but this form is more compact.
Note the use of the Setup event which commences after the Windows form is present. Autostart is not a good choice since the program can begin before the Window is available to draw on.
Related Topics
Draw Line
Set Coordinate Frame
Clear