euclideanDistance

fun <T : Color> T.euclideanDistance(other: T): Float

Calculate the euclidean distance between this color and other.

Note that this formula assumes a rectangular color space, and will not return meaningful results in spaces with polar coordinates such as HSV.