CanvasLineCap

The shape used to draw the end points of lines.

The actual shape may be affected by the current transform at the time of drawing. Only affects stroking.

Defaults to LineCap.butt.

Values

ValueMeaning
butt

Use a flat cap flush to the end of the line.

square

Use a half-square cap that extends past the end of the

circle

line.

Meta