Skip to main content
Version: 1.x

@microsoft/fast-components > Palette > closestIndexOf

Palette.closestIndexOf() method

Returns the index of the palette that most closely matches the relativeLuminance of the provided swatch

Signature:
closestIndexOf(reference: RelativeLuminance): number;

Parameters

ParameterTypeDescription
referenceRelativeLuminance
Returns:

number