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
colorColorThe color to test against the GetClosestNamedColor16(Color) value in
namedColor.namedColorColorName16The 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
coloris the provided value.
false if any other named color is closer tocolorthannamedColor.
Remarks
If color is equidistant from two named colors, the result of this method is not guaranteed
to be determinate.