Is there any possible way to create a gradient filled box in SpriteKit? I\'ve tried filling a shape node with that but it notes that only solid colors work with skshapenode.
I don't think this is possible with current SKShapeNode
, which barely handles its basic features currently. A good approach if you don't want to use pre-existing sprite gradient images would be to create an SKTexture
from applying a CIFilter
(like maybe CILinearGradient
in this case) to a basic box image, and then create the SKSpriteNode
from that SKTexture
.