Created
December 8, 2016 11:11
-
-
Save notalentgeek/572ed84b2e33ba5979359f6dfcf9defa to your computer and use it in GitHub Desktop.
A Processing function to change color's opacity.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public color ChangeAlpha( | |
color _color, | |
int _desiredAlpha | |
){ return _color & ~#000000 | (_desiredAlpha << 030); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment