SFML community forums
Help => Graphics => Topic started by: Bogdan on August 19, 2017, 08:32:34 am
-
Hi,
is it possible to change the color of a part of a sprite only?
Let's assume that I've got a sprite consisting of a greyscale building and a colored symbol.
How to change the color of the building only (lets say to red), while keeping the original symbol color?
-
Space them further apart and use two sprites with different texture rects. Then you can change the color of each sprite independently.
A sprite by itself can't have multiple colors.
If that's how you always want to display it, then the better solution would be to use a image editor abd change the color there.