diff options
| author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-05-25 09:37:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-25 09:37:21 +0200 |
| commit | 2ce69d656479050e382be5a5722bc74a4ca9e3c8 (patch) | |
| tree | ccf60b870facce5ddbc628a00caae93e1381e797 /src/main/java/at/hannibal2/skyhanni/utils | |
| parent | 1b03d608a75f16c3be892cda65b8f4a6059a9925 (diff) | |
| download | skyhanni-2ce69d656479050e382be5a5722bc74a4ca9e3c8.tar.gz skyhanni-2ce69d656479050e382be5a5722bc74a4ca9e3c8.tar.bz2 skyhanni-2ce69d656479050e382be5a5722bc74a4ca9e3c8.zip | |
Backend: Better Mob Highlight (#1856)
Co-authored-by: hannibal2 <24389977+hannibal002@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/ColorUtils.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ColorUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ColorUtils.kt index e5ff47073..b7dbce754 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ColorUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ColorUtils.kt @@ -35,4 +35,6 @@ object ColorUtils { } fun Color.withAlpha(alpha: Int): Int = (alpha.coerceIn(0, 255) shl 24) or (this.rgb and 0x00ffffff) + + fun Color.addAlpha(alpha: Int): Color = Color(red, green, blue, alpha) } |
