Canvas Linecap
π
2026-06-14 | π HTML
## HTML Canvas `lineCap` Property
The `lineCap` property of the HTML5 Canvas 2D context determines the shape and style of the end caps applied to the ends of lines.
By default, lines are drawn with flat, squared-off ends. By changing the `lineCap` property, you can round the ends or extend them with a square cap.
---
## Browser Support
The `lineCap` property is widely supported across all modern web browsers:
* Google Chrome
* Mozilla Firefox
* Safari
* Opera
* Microsoft Edge / Internet Explorer 9+
*Note: Internet Explorer 8 and earlier versions do not support the `