Skip to content

Commit

Permalink
Avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jan 14, 2024
1 parent 8d48125 commit eef9df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/conversions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eef9df9

Please sign in to comment.