I must be missing something!
I want to create a solid rectangular CCSprite with a background color initialized to a particular RGB value. I have looked all over the docs and can’t find anything.
Is there a way to initialize the background of CCSprite to a specific color?
I don’t want to have to include a solid color PNG for each colors that I will need.
Help!
CCSpritehas acolorproperty of typeccColor3B:Source: CCSprite reference.
You can easily construct a ccColor3B struct using
ccc3():Reference: ccColor3B reference.