Instance Property

strokeColor

The color used to stroke the shape.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(nonatomic, retain) UIColor *strokeColor;
macOS
@property(nonatomic, retain) NSColor *strokeColor;

Discussion

The default stroke color is [SKColor whiteColor]. If you do not want to stroke the shape, use [SKColor clearColor].

See Also

Stroking a Shape

lineWidth

The width used to stroke the path.

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.

miterLimit

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

antialiased

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