From 2ce69d656479050e382be5a5722bc74a4ca9e3c8 Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Sat, 25 May 2024 09:37:21 +0200 Subject: Backend: Better Mob Highlight (#1856) Co-authored-by: hannibal2 <24389977+hannibal002@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/utils/ColorUtils.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/utils') 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) } -- cgit