Instance Property

miterLimit

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

Declaration

@property(nonatomic) CGFloat miterLimit;

Discussion

If the line join style is set to kCGLineJoinMiter, 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

lineWidth

The width used to stroke the path.

strokeColor

The color used to stroke the shape.

strokeTexture

The texture used to stroke the shape.

glowWidth

A glow that extends outward from the stroked line.

lineCap

The style used to render the endpoints of the stroked portion of the shape node.

lineJoin

The junction type used when the stroked portion of the shape node is rendered.

antialiased

A Boolean value that determines whether the stroked path is smoothed when drawn.