distanceTo method

double distanceTo(
  1. ColorModel color
)
inherited

Returns the distance between this color's hue and color's hue in degrees.

Implementation

double distanceTo(ColorModel color) =>
    ColorMath.calculateDistance(hue, color.hue).toDouble();