Reputation: 510
Can't understand how to draw a line, which is SKShapeNode, and fill it with linear gradient. Any suggestions?
Upvotes: 0
Views: 118
Reputation: 1979
A custom strokeShader
is what you want.
https://developer.apple.com/documentation/spritekit/skshapenode/controlling_shape_drawing_with_shaders
Upvotes: 4