D
dan444
Guest
I'm looking to slightly tint the colors of a sprite. Meaning that white and black stay the same but other colours change so the overall saturation stays the same, similar to the 'color' blend mode in photoshop. The intention is to change this multiple times, so creating different versions of the sprites is not an option. I've done a lot of searching, but most posts are dead ends and nothing has worked so far.
This is what I currently have, it's kind of working but not very well. I'm surprised there isn't a built in function like draw_set_tint(c_blue, 0.5) as it it seems like it would be a very obvious/useful feature?
This is what I currently have, it's kind of working but not very well. I'm surprised there isn't a built in function like draw_set_tint(c_blue, 0.5) as it it seems like it would be a very obvious/useful feature?
GML:
draw_self();
gpu_set_blendmode_ext(bm_src_alpha, bm_one);
image_alpha = 0.9;
image_blend = c_blue;
draw_self();
gpu_set_blendmode(bm_normal);
image_alpha = 1
image_blend = -1;