draw_line(x1,y1,x2,y2)
Jump to navigation
Jump to search
Description
Draws a line from the first point to the second using the current draw color.
Parameters
Parameter | Data Type | Description |
---|---|---|
x1 | float | x coordinate of the point to draw from |
y1 | float | y coordinate |
x2 | float | x coordinate of the point to draw to |
y2 | float | y coordinate |
Return Values
void: This function does not return anything.
Example Call
//Draws a line from point 0,0 to point 10,10.
draw_line(0,0,10,10)