Contents

miterLimit

The miter limit to use when the line is stroked using a miter join style.

Declaration

var miterLimit: CGFloat { get set }

Discussion

If the line join style is set to CGLineJoin.miter, SpriteKit uses the miter limit to determine whether the lines should be joined with a bevel instead of a miter. SpriteKit divides the length of the miter by the line width. If the result is greater than the miter limit, SpriteKit converts the style to a bevel.

See Also

Stroking a Shape