Method IsColorClosestToNamedColor16
IsColorClosestToNamedColor16(in Color, in ColorName16)
Determines if the closest named Color to color
/> is the provided
namedColor
.
[Pure]
public static bool IsColorClosestToNamedColor16(in Color color, in ColorName16 namedColor)
Parameters
color
ColorThe color to test against the GetClosestNamedColor16(Color) value in
namedColor
.namedColor
ColorName16The GetClosestNamedColor16(Color) to check if this Color is closer to than any other configured named color.
Returns
- bool
true if the closest named color to
color
is the provided value.
false if any other named color is closer tocolor
thannamedColor
.
Remarks
If color
is equidistant from two named colors, the result of this method is not guaranteed
to be determinate.