line
Draws a line on the canvas.
Parameters
x1
The X coordinate of the first point
y1
The Y coordinate of the second point
x2
The X coordinate of the first point
y2
The Y coordinate of the second point
color
The color of the line
Draws a line on the canvas using triangles and quads.
Parameters
x1
The X coordinate of the first point
y1
The Y coordinate of the second point
x2
The X coordinate of the first point
y2
The Y coordinate of the second point
thick
The thickness of the line.
color
The color of the line