strokeShader
A custom shader used to determine the color of the stroked portion of the shape node.
Declaration
var strokeShader: SKShader? { get set }Mentioned in
Discussion
The default value is nil. If a strokeShader is specified, when the shape node is drawn, the shader is used to determine the output colors for any part of the shape node that’s stroked. SpriteKit implements many stroke features using a default shader, such as:
If you supply a custom value for strokeShader, your custom shader overrides the default shader which neutralizes the default features. It is the responsibility of your custom strokeShader to implement any of the features your shape requires.