@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
Parameter | Type | Description |
---|---|---|
reference | RelativeLuminance |
number