I create a SKSpriteNode
just with a fill color and a size, then I rotate it:
SKSpriteNode *myNode = [SKSpriteNode spriteNodeWithColor:[SKColor grayColor] size:CGSizeMake(100, 100)];
myNode.zRotation = 0.2 * M_PI;
How do I enable anti-aliasing for my SKSpriteNode
? Right now, the edges of the gray square look jagged.
What I already found out: When I create a gray 100x100px PNG and use spriteNodeWithImageNamed:
, the edges look jagged, too. If I add a 1px transparent border around the gray square PNG, the edges look smooth. (Since the jagged edges are now transparent.)
Thank you in advance for your help!