/

HTML / CSS / JavaScript Tutorial

JavaScript canvas2d object property: lineJoin

[this page | pdf | back links]

The lineJoin property of the JavaScript DOM object returned by the getContext("2d") method applied to the HTML <canvas> element sets / returns the type of corner between two lines where they join.

 

It can take the following values: bevel (creates a bevelled corner), round (creates a rounded corner) or miter (default, creates a sharp corner, provided the distance between the inner and outer corner of the join is not larger than the miterLimit).

 


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


Desktop view | Switch to Mobile