ipochto / stratagus

The Stratagus strategy game engine
GNU General Public License v2.0
0 stars 0 forks source link

Method for changing the hues. #26

Open ipochto opened 3 years ago

ipochto commented 3 years ago

https://discord.com/channels/780082494447288340/780082494447288344/824247033468682310 It can be used to change skin color. Andrettin:

With such a method, you could programmatically do interesting things with existing graphics. in Wargus' case, you could create night elves or jungle trolls this way, for example

https://github.com/Andrettin/Wyrmgus/blob/master/src/util/image_util.cpp Andrettin:

void rotate_hue(QImage &image, const double degrees, const color_set &ignored_colors) line 308 it uses Qt classes, but it shouldn't be too difficult to convert it to use something different

ipochto commented 2 years ago

https://discord.com/channels/780082494447288340/780082494447288344/894690344518692864