Tint() on opaque grayscale image has no effect?
in
Programming Questions
•
2 years ago
I can't seem to apply a tint to opaque grayscale images. Am I doing something wrong here? I have transparent black and white images of left and right wings. I want to be able to change the wing colors and I thought the simplest way would be to use neutral tone colors and apply tints to them.
<snip>
Full project development code located in WeirdThings class at http://pages.suddenlink.net/tls/std_applet_sm/
<snip>
- tint(#E81313,255);
- image(rwing,eyeSize*4,0,sin(flap)*(eyeSize*4) +1,eyeSize*4);
- image(lwing,2,0,-sin(flap)*(eyeSize*4) +1,eyeSize*4);
- flap += flapStep; /// modifying the flapstep changes wingspeed
- noTint();
Full project development code located in WeirdThings class at http://pages.suddenlink.net/tls/std_applet_sm/
1