How can I tint a sprite to white?

How can I tint a sprite to white?

1 Like

yourSprite->setColor(ccc3(R, G, B));
For white use R = G = B = 255.

1 Like

Tinting a sprite to white leaves it in the same color as the origin image was.

So you shouldn’t see any difference if you tint a normal CCSprite it to white.

You may want to change its color so its more white, but that is not tinting and it’s more complicated.
I guess you could try something with custom shaders (fragment shaders).

I’d have a brighter version (more white) of the image and tint that to black/grey to get the original one.