Skip to main content
Version: 1.x

@microsoft/fast-colors > ColorScale > findNextColor

ColorScale.findNextColor() method

Signature:
findNextColor(position: number, contrast: number, searchDown?: boolean, interpolationMode?: ColorInterpolationSpace, contrastErrorMargin?: number, maxSearchIterations?: number): number;

Parameters

ParameterTypeDescription
positionnumber
contrastnumber
searchDownboolean
interpolationModeColorInterpolationSpace
contrastErrorMarginnumber
maxSearchIterationsnumber
Returns:

number