|
||
Antiquated |
void draw_line ( int x1, int y1, int x2, int y2, int color_index )
int x1; // Integer x-coordinate int y1; // Integer y-coordinate int x2; // Integer x-coordinate int y2; // Integer y-coordinate int color_index; // Index into a 256-color palette
|
|
Synopsis |
#include "silver.h"
The draw_line function draws a solid pixel line 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.
color_index is a color index that supplies the color of the pixel line.
|
|
Return Value |
none
|
|
Remarks |
draw_line has been superseded by draw_rgb_line.
|
|
See Also |
|