HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Canvas Object : Draw a line with rounded end caps
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
lineCap | 4.0 | 9.0 | 3.6 | 4.0 | 10.1 |
The lineCap property sets or returns the style of the end caps for a line.
Default value: | butt |
---|---|
JavaScript syntax: | context.lineCap = "butt|round|square"; |
Value | Description | Play it |
---|---|---|
butt | Default. A flat edge is added to each end of the line | Play it » |
round | A rounded end cap is added to each end of the line | Play it » |
square | A square end cap is added to each end of the line | Play it » |
❮ Canvas Object