iphone - cocos2d - how to extract rgb from color -
iphone - cocos2d - how to extract rgb from color - i'm making final part of game tells score is. wanted create flash, dynamic , animated, want score sort of total up, plan making text displayed score closer actual score in each draw event, until reaches total score. however, want digits of score flash increment, , fade. plan extracting lastly digit score displayed 1 step away, , comparing lastly digit score displayed. then, if different, set color of lastly digit white orange. happen every digit. but want digits fade downwards white again, need help (i've looked everywhere , can't find answer) need color of every letter, , merge white. don't know how red, greenish , bluish components. here's i've got far: -(bool) colourcount:(cclabelbmfont*)label currentno:(int)cno targetno:(int)tno { ccarray *characters = [label children]; //-------the code making letters orange go here---------- //below makes color of every letter more white ...