Table of Contents

Method IsColorClosestToNamedColor16

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

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 Color

The color to test against the GetClosestNamedColor16(Color) value in namedColor.

namedColor ColorName16

The 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 to color than namedColor.

Remarks

If color is equidistant from two named colors, the result of this method is not guaranteed to be determinate.