SilverScreen Solid Modeler

draw_rgb_line

draw_rgb_line

Previous topic Next topic  

draw_rgb_line

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void draw_rgb_line ( int x1, int y1, int x2, int y2, RGB rgb, int width )

 

int x1;              // x value of point 1

int y1;              // y value of point 1

int x2;              // x value of point 2

int y2;              // y value of point 2

RGB rgb;             // color to use

int width;           // line width

 

 




Synopsis

#include "silver.h"

 

The draw_rgb_line function draws a line on the graphics screen in the specified rgb color, between the points with screen pixel coordinates (x1 , y1) and (x2 , y2).

 

 

Parameters

x1, y1 , x2 and y2 are all integers, such that 0 <= x1 , x2 < spixel_width and 0 <= y1 , y2 < spixel_height. rgb is an rgb color as constructed by MAKE_RGB. width is the integer width of the line.

 

 

Return Value

none

 

See Also

draw_point , draw_world_line , draw_world_point , refresh_lines , clear_away_lines

Screen Dimensions, Colors and RGB