LineCap

The type for setting the shape used to draw the end points of lines. See Canvas for more details.

type LineCap int

where values could be one of the following:

Value Constant Description
0 ButtCap The ends of lines are squared off at the endpoints. Default value
1 RoundCap The ends of lines are rounded
2 SquareCap The ends of lines are squared off by adding a box with an equal width and half the height of the line's thickness