aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Lin <danny@kdrag0n.dev>2021-09-01 02:40:21 -0700
committerDanny Lin <danny@kdrag0n.dev>2021-09-01 02:40:21 -0700
commit6d0d3a1d4660f444cdd3042fd74cdae8f3fca16d (patch)
treeaa17b8ed28a58e3a8bf1e323a8669977d21758ba
parentfbe40280e970eba1c2aa4ea9a056170519b35d0e (diff)
gamut: lch: Remove unnecessary usage of this
-rw-r--r--src/commonMain/kotlin/dev/kdrag0n/colorkt/gamut/LchGamut.kt12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/commonMain/kotlin/dev/kdrag0n/colorkt/gamut/LchGamut.kt b/src/commonMain/kotlin/dev/kdrag0n/colorkt/gamut/LchGamut.kt
index f25966a..511bdeb 100644
--- a/src/commonMain/kotlin/dev/kdrag0n/colorkt/gamut/LchGamut.kt
+++ b/src/commonMain/kotlin/dev/kdrag0n/colorkt/gamut/LchGamut.kt
@@ -122,19 +122,19 @@ public object LchGamut {
alpha: Double = 0.05,
): LinearSrgb {
val l0 = when (method) {
- ClipMethod.PRESERVE_LIGHTNESS -> this.lightness
+ ClipMethod.PRESERVE_LIGHTNESS -> lightness
ClipMethod.PROJECT_TO_MID -> 50.0
ClipMethod.ADAPTIVE_TOWARDS_MID -> OklabGamut.calcAdaptiveMidL(
- L = this.lightness / 100.0,
- C = this.chroma / 100.0,
+ L = lightness / 100.0,
+ C = chroma / 100.0,
alpha = alpha,
) * 100.0
}
return clip(
- l1 = this.lightness,
- c1 = this.chroma,
- hue = this.hue,
+ l1 = lightness,
+ c1 = chroma,
+ hue = hue,
l0 = l0,
epsilon = EPSILON_100,
maxLightness = 100.0