Strokes a line using the current stroke paint.
This method will be affected by any of the global common or stroke attributes as specified in the Rendering Attributes Table.
x1 | the X coordinate of the starting point of the line. | |
y1 | the Y coordinate of the starting point of the line. | |
x2 | the X coordinate of the ending point of the line. | |
y2 | the Y coordinate of the ending point of the line. |
Diagram: Canvas