Table of Contents

Method IsClosestToNamedColor16

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

IsClosestToNamedColor16(in ColorName16)

Determines if the closest named Color to this is the provided namedColor.

[Pure]
public bool IsClosestToNamedColor16(in ColorName16 namedColor)

Parameters

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 is the provided value.
false if any other named color is closer to this Color than namedColor.

Remarks

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