vg4->window->draw_line()
Draw a line onto window.
SYNTAX
void
vg4->window->draw_line(int x1, int y1, int x2, int y2, int color)
FUNCTION PARAMETERS
x1 | x-coordinate of the start point |
y1 | y-coordinate of the start point |
x2 | x-coordinate of the end point |
y2 | y-coordinate of the end point |
color | Line color: one of VG_COLORS or from VG_COLOR_RGB() |
DESCRIPTION
Draw a line onto window.
The modified window contents will not be seen unless calling vg4->window->flush().
SEE ALSO