Last active
October 5, 2018 10:21
-
-
Save ziggi/36150912f5e48025b1e43d5f3f80d248 to your computer and use it in GitHub Desktop.
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
stock rgba2bgra(color) | |
{ | |
return | |
(color & 0xFF) | |
| ((color & 0xFF00) << 16) | |
| (color & 0xFF0000) | |
| ((color >> 16) & 0xFF00); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment