Reputation: 2741
I had applied color to a ccsprite. The sprite is initilize with an image of green color. After then i applied red color to it. Now how to remove the red color and bring it back to original image color?
Suppose this is the original image
Now when i apply red color to it, it is colored as red. My question is how to remove this color which i recently applied?
The code i use is
CCSprite *ballSprite=[[CCSprite alloc]initWithFile:@"ball.png"];
ballSprite.color=ccRED;
Upvotes: 1
Views: 325