SilverScreen Solid Modeler

draw_point

draw_point

Previous topic Next topic  

draw_point

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void draw_point ( int x1, int y1, int color )

 

int x1;           // x value of point

int y1;           // y value of point

int color;        // color to use

 

 




Synopsis

#include "silver.h"

 

The draw_point function draws a point on the graphics screen in the specified color,  at the pixel coordinates (x1 , y1).

 

 

Parameters

x1, y1  are integers, such that 0 <= x1  < spixel_width and 0 <= y1 < spixel_height. color is a color number in the range of 0 to 255, which may have the following flags or'ed in (as defined in silver.h):

 

Name

Value

Meaning

COLOR_WIDE

0x4000

draw the specified line in wide line

COLOR_INVERSE

0x2000

draw the specified line by xor'ing the screen with a line of the specified color and width, and save the line information away, so that it may be cleared by a subsequent call to refresh_lines .

 

 

Return Value

none

 

 

See Also

draw_rgb_line , draw_world_line , draw_world_point , refresh_lines , clear_away_lines