swift - Set color of SKShapeNode -
i have skshapenode, defined circlewithradius. when try modify color of node node.fillcolor
, gets filled entire area around circle, not area defined circle path. question is: how can fill inner area of node?
edit
here code:
let bigcirle = skshapenode(circleofradius: basecontrolerradius) bigcirle.position = cgpointmake(self.view!.frame.size.width * 0.85, (self.view?.frame.size.height)! * 0.15) bigcirle.fillcolor = skcolor.bluecolor() bigcirle.name = bigcirclecontrolersknodename self.addchild(bigcirle)
Comments
Post a Comment