using bitshifting to change alpha value on color?
in
Programming Questions
•
9 months ago
Given a color, I want to use bitshifting to change the alpha value.
I am not sure how to use >> and << to do this.
I currently create the new color like this:
color newAlphaColor = color( red(oldColor), green(oldColor), blue(oldColor), newAlpha );
How would I use >> and << to do this?
Thanks!
1