I use cocos2d and i draw circles like this
- (void)draw:(Ball*)ball {
glLineWidth(1);
ccDrawColor4F(255 / 255.0f, 0 / 255.0f, 0 / 255.0f, 200 / 255.0f);
ccDrawCircle(ball._center, ball._radius, CC_DEGREES_TO_RADIANS(ball._angle), ball._segments, NO);
ball._center = CGPointMake(ball._center.x + ball._directionX, ball._center.y + ball._directionY);
}
this is a state of the ball where i increase the center so it can move. This produce red border circles but i want to fill the circles with come color and alpha.
I also tried to subclass the CCSprite class and call
self.color = ccc3(200 / 255.0f, 0 / 255.0f, 0 / 255.0f);
in the init method but again only the border of the circle gets color.
So my question is how to fill a circle with color, what am i missing?