|Topic was automatically imported from the old Question2Answer platform.
I was just wondering, if it was possible to replace one specific color in a Sprite. I’d like to have n NPCs walking around, everyone having a diferent shirt color. I don’t know in advance how many instances of this scene I will have, so I cannot prepare n sprites with different colors beforehand.
I would like to replace every pixel of one color, lets say #ffffff, with a different color, lets say #ababab, in the whole texture of the sprite.
I think modulate does not do what I want, because as far as I understand, it changes every color, and not just one.