Line
Draw a line in the image.
Parameters
Parameter | Type | Description |
---|---|---|
x1 |
| X-Coordinate of one of the endpoint of the line. |
y1 |
| Y-Coordinate of one of the endpoint of the line. |
x2 |
| X-Coordinate of the other endpoint of the line. |
y2 |
| Y-Coordinate of the other endpoint of the line. |
c |
| Color of the line. |
Return Values
The instance of *imgo.Image
.
Examples
Last updated