void DrawSetPenColor( int nColor )
void DrawSetPenColor( int nRed, int nGreen, int nBlue )
int nColor
A predefined constant specifying the new color of the pen. The valid values are BLACK, BLUE, BROWN, CHARCOAL, CREAM, CYAN, GOLD, GRAY,
GREY, GREEN, LILAC, LIME, MAGENTA, MAROON, OLIVE, ORANGE, PINK, PURPLE, RED, ROSE, SALMON, STEEL,
TAN, VIOLET, WHITE, and YELLOW.
int nRed, nGreen, nBlue
An RGB specification of the desired color. Each parameter must be an integer in the range [0, 255]. Examples: the triplet (0, 0, 0) represents black; the triplet (255, 255, 255) represents white.
This method sets the color of the pen. There is only one pen and it is shared by all three drawing regions (PLOTBACKGROUND, PLOTFOREGROUND, GRAPHFOREGROUND). The pen is used to draw lines and grids as well as to draw the outline of figures such as arcs, markers, rectangles, and polygons.
The default pen color is BLACK.
x = { 1 2 3 4 5 6 7 8 };
y = { 2 1 4 5 6 5 6 9 };
declare ScatterPlot plot;
plot = ScatterPlot.Create( "Sample Data", x, y );
plot.DrawSetPenColor( RED );
plot.DrawUseDataCoordinates();
plot.DrawLine( x, y );
Plot.DrawSetPenAttributes
Plot.DrawSetPenStyle
Plot.DrawSetPenWidth