Hello there again !
I would like to share with you another code snippet for more easy managing colors.
Every time we need to think which color struct we should pick it is time consuming. So I wan’t share with you how i skip this
auto strap = cocos2d::CCLayerColor::create(Acme::Color::convert(color)); //... auto strap = cocos2d::CCLayerColor::create(Acme::Color::convert(0xff00ff00)); //... label->setColor(Acme::Color::convert(Theme::Color::black));
Simply you don’t have to think is it a
You only need those 2 files or connect them as you want
Raw color handling:
Cocos2d-x extension (wrapper)