Fixer90
Member
Let's say I have a sprite that is a simple, gray-colored square, with RGB values (128, 128, 128). Is there a code function or method I can use to decrease/increase the color values? I tried playing around and experimenting with image_blend, but the calculations for that were too complicated. Alternately, if anyone knows exactly how GMS2 handles color blending, I might be able to setup my own function based on that math.
What I'd want the most is a function in which I can input a number to add (positive) or subtract (negative) to each RGB value of my choice to the image of a sprite.
EDIT: For example, if I went back to the gray square - since it has 128 RGB - I'd just input 127, and it would turn from 128 to 255 on each, making it pure white.
What I'd want the most is a function in which I can input a number to add (positive) or subtract (negative) to each RGB value of my choice to the image of a sprite.
EDIT: For example, if I went back to the gray square - since it has 128 RGB - I'd just input 127, and it would turn from 128 to 255 on each, making it pure white.