Name
CRC.miterLimit — maximum miter length to line width ratio
Synopsis
float miterLimit
Description
When lines are drawn with the lineJoin
property
set to “miter” and two lines meet at an acute angle, the resulting miter
can be quite long. When miters are too long, they become visually
jarring. This miterLimit
property places an upper
bound on the length of the miter. This property expresses a ratio of the
miter length to half the line width. The default value is 10, which
means that a miter should never be longer than five times the line
width. If a miter formed by two lines would be longer than the maximum
allowed by miter
Limit
then those two lines will be joined
with a bevel instead of a miter.
See Also
Get Canvas Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.