I found an RGB to HSV conversion function on this board, but I actually want to take an sprite button and if it is disabled, dynamically desaturate it to make a grayscale version.
Is this possible? or should I just make duplicate sprites?
A fast, easy to use, free, and community supported 2D game engine
I found an RGB to HSV conversion function on this board, but I actually want to take an sprite button and if it is disabled, dynamically desaturate it to make a grayscale version.
Is this possible? or should I just make duplicate sprites?
Hi CJ,
Look at the AtlasSpriteTest of cocos2d. If you touch the screen, new sprites with different effects appear. In one of these effects, as far as I can remember, the sprite fades to half-red and back. Try this effect with your button-sprites and a nice grey instead of red, this should be a perfect desaturation!
~mint
You must log in to post.