Draw smooth circle in iOS sprite kit Draw smooth circle in iOS sprite kit ios ios

Draw smooth circle in iOS sprite kit


The antialiasing is activated by default, but It only applies to the lines, not the fill.

Set the lineWidth to a number greater than 0 and try again.


Set the antialised property to YES.

shapeNode.antialiased = YES;

The rough edges are not visible when you use fill color.

//shapeNode.fillColor = [SKColor redColor];shapeNode.strokeColor =[SKColor redColor];shapeNode.antialiased = YES;shapeNode.lineWidth = 1;

Now switch between YES and NO for antialisaed property.You will notice the difference.