/

HTML / CSS / JavaScript Tutorial

JavaScript canvas2d object property: lineCap

[this page | pdf | back links]

The lineCap property of the JavaScript DOM object returned by the getContext("2d") method applied to the HTML <canvas> element sets / returns the style used for line ends.

 

It can take the following values: butt (default, a flat edge), round (rounded end cap) or square (square end cap).

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile