furthest method

I furthest(
  1. I color
)

Returns the color with the values furthest from color.

The difference in values is determined by calculating the difference between each colors' respective hue, saturation, and perceived brightness values, giving the difference in hue twice the weight of the difference in the saturation and perceived brightness values.

Implementation

I furthest(I color) => colors.furthest(color as O) as I;