RotatingPlot.SetGridFrontColor

Prototypes

void SetGridFrontColor( int nColor )

void SetGridFrontColor( int nRed, int nGreen, int nBlue )

Parameters

int nColor
A predefined constant specifying the desired color. 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.

Remarks

This method sets the color of the computational grid facing the positive Z direction. If the drawing mode (SetDrawingMode) is such that hidden lines are displayed, this method sets the color of the entire computational grid.

Example
x = { 0 10 10  0 1 9 9 1 2 8 8 2 3 7 7 3 4 6 6 4 5 };
y = { 0  0 10 10 1 1 9 9 2 2 8 8 3 3 7 7 4 4 6 6 5 };
z = { 0  0  0  0 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 5 };
declare RotatingPlot plot;
plot = RotatingPlot.Create( "Pyramid", x, y, z, false );
plot.Rotate( 3.14159/9, 1, 0, 1 );
plot.Rotate( 3*3.14159/4, 0, 1, 0 );
plot.SetGridFrontColor( YELLOW );
plot.ShowObs( false );
plot.SetDrawingMode( OPAQUEMESH );
plot.ShowWindow();
See Also

RotatingPlot.SetGridBackColor