How to change the sprite colors
Posted
by
Mr_Qqn
on Game Development
See other posts from Game Development
or by Mr_Qqn
Published on 2011-02-11T21:56:58Z
Indexed on
2011/02/11
23:34 UTC
Read the original article
Hit count: 374
In my rhythm game, I have a note object which can be of different colors depending on the note chart. I could use a sprite sheet with all the different color variations I use, but I would prefer to parametrize this. (For information, a note sprite is compound with one main color, for example a red note has only red, light red and dark red.)
So, how to change the colors of a sprite basing on a new color ?
I'm working with opengl, but any algorithm or math explanation will do. :)
Thanks
© Game Development or respective owner