I would like to know what is the Cocos2d-x class similar to Objective C UIColor class.
Here is the Objective C code:
UIColor *myColor =[UIColor colorWithRed:(float)71/255 green:(float)12/255 blue:(float)54/255 alpha:1.0];
Thanks !
I would like to know what is the Cocos2d-x class similar to Objective C UIColor class.
Here is the Objective C code:
UIColor *myColor =[UIColor colorWithRed:(float)71/255 green:(float)12/255 blue:(float)54/255 alpha:1.0];
Thanks !
ccColor4B c4 = {255, 255, 255, 255};
…or…
ccColor3B c3 = ccc3(255, 255, 255) );