differenceCMC

fun Color.differenceCMC(other: Color, l: Float = 2.0f, c: Float = 1.0f): Float

Calculate the difference ΔEcmc between this color and other using the Colour Measurement Committee recommendation.

This formula has two parameters used to weight the result based on the ratio of l:c. Commonly used values are 2:1 for acceptability and 1:1 for the threshold of imperceptibility.

Note that this is a quasimetric, so a.differenceCMC(b) may not equal b.differenceCMC(a)

Return

a value in the range [0, 100], with 0 meaning the colors are identical.