From eef9df9f55abbb2f881d770fdfbfdd24bd9768f6 Mon Sep 17 00:00:00 2001 From: Jon Pretty Date: Sun, 14 Jan 2024 18:31:31 +0100 Subject: [PATCH] Avoid warnings --- src/core/conversions.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/conversions.scala b/src/core/conversions.scala index 107a4b6..1e1484d 100644 --- a/src/core/conversions.scala +++ b/src/core/conversions.scala @@ -217,7 +217,7 @@ case class Cielab(l: Double, a: Double, b: Double): def mix(that: Cielab, ratio: Double = 0.5): Cielab = Cielab(l*(1 - ratio) + ratio*that.l, a*(1 - ratio) + ratio*that.a, b*(1 - ratio) + ratio*that.b) - def delta(that: Cielab): Double = (hyp(that.a, that.b) - hyp(a, b)).double + def delta(that: Cielab): Double = (hyp(F64(that.a), F64(that.b)) - hyp(F64(a), F64(b))).double object Cmy: given RgbColor[Cmy] = _.srgb.rgb24.asInt