Canvas

Canvas Tutorials

Canvas Methods and Properties

HTML canvas miterLimit Property

HTML canvas miterLimit Property

 

 

The miterLimit property sets or returns the maximum miter length. It is the distance between the inner corner and the outer corner where two lines meet. It grows bigger as the angle of the corner gets smaller. To prevent it, we can use miterLimit property.

 

Syntax:-

 

Its syntax is:- context.miterLimit = number;

 

Further Explanation:-

 

Value Description
number A positive number that specifies the maximum miter length.

Code Explanation

All Tutorials related to Canvas Methods and Properties

All Sections related to Canvas