Last active
October 20, 2022 05:19
-
-
Save pfieffer/566a486cc84e752e24410328db9d46fd to your computer and use it in GitHub Desktop.
ARGB where A = Alpha. Opacity levels according to percentage
This file contains hidden or 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
E.g. for 50% white you'd use #80FFFFFF | |
100% — FF | |
95% — F2 | |
90% — E6 | |
85% — D9 | |
80% — CC | |
75% — BF | |
70% — B3 | |
65% — A6 | |
60% — 99 | |
55% — 8C | |
50% — 80 | |
45% — 73 | |
40% — 66 | |
35% — 59 | |
30% — 4D | |
25% — 40 | |
20% — 33 | |
15% — 26 | |
10% — 1A | |
5% — 0D | |
0% — 00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hex values for the alpha in ARGB.
Substitute
AA
with the desired value of alpha inAARRGGBB
.