From 3dd29f5128ac4e5b45d4b0e75eec7a22d83bd466 Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Thu, 7 Dec 2023 12:21:26 +0100 Subject: [PATCH] [orx-color] Fix ColorOKHSla.mix() --- orx-color/src/commonMain/kotlin/spaces/ColorOKHSLa.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orx-color/src/commonMain/kotlin/spaces/ColorOKHSLa.kt b/orx-color/src/commonMain/kotlin/spaces/ColorOKHSLa.kt index cbee5a54..7abf922c 100644 --- a/orx-color/src/commonMain/kotlin/spaces/ColorOKHSLa.kt +++ b/orx-color/src/commonMain/kotlin/spaces/ColorOKHSLa.kt @@ -115,7 +115,7 @@ data class ColorOKHSLa(val h: Double, val s: Double, val l: Double, override val override fun mix(other: ColorOKHSLa, factor: Double): ColorOKHSLa { val sx = factor.coerceIn(0.0, 1.0) return ColorOKHSLa( - mixAngle(h, other.h, sx) / 360.0, + mixAngle(h, other.h, sx), (1.0 - sx) * s + sx * other.s, (1.0 - sx) * l + sx * other.l, (1.0 - sx) * alpha + sx * other.alpha