SilverScreen Solid Modeler

pixel_clear

pixel_clear

Previous topic Next topic  

pixel_clear

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void pixel_clear ( int x1, int y1, int x2, int y2, int color )

 

int x1;            // left edge of pixel area

int y1;            // right edge of pixel area

int x2;            // top edge of pixel area

int y2;            // bottom edge of pixel area

int color;         // color to use

 

 




Synopsis

#include "silver.h"

 

The pixel_clear function clears the area specified with pixel coordinates x1 , x2 , y1 , and y2 to the color specified by color .

 

 

Parameters

x1 , y1 , x2 and y2 are pixel coordinates, with 0 <= x1 , x2 < spixel_width and 0 <= y1 , y2 < spixel_height . color is a color number.

 

 

Return Value

none.

 

 

See Also

clear_area, cls