SHCircle class will allow you to create primitive circles on the stage. You can customize inner color, outer color, border color, change the border width, toggle the fill and border, set the center x, center y, change the radius x, radius y, set the degrees to render, rotate around center, and everything else you can do with an SPDisplayObject.
//initialize a circle with width of 100 and height of 100 SHCircle *circle = [SHCircle circleWithWidth:100 height:100]; //set the x radius to 25, which changes the width to 50 circle.radiusX = 25.0f; //set the y radius to 10, which changes the height to 20 circle.radiusY = 10.0f; //render half of the circle circle.degrees = 180; //rotate the circle 45 degrees around the center circle.centerRotation = 45; //change the solid color to blue circle.color = 0x0000ff; //change the inner color to red and outer color to black circle.innerColor = 0xff0000; circle.outerColor = 0x000000; //toggle the border on circle.border = YES; //set the border width to 1 pixel circle.borderWidth = 1.0f; //set the border color to red circle.borderColor = 0xff0000; //toggle the fill off circle.fill = NO; //center the circle on stage circle.centerX = 320/2; circle.centerY = 480/2; //add the circle to stage [self addChild:circle];
#include "SHCircle.h"
#import "SHCircle.h"