@microsoft/fast-colors > ColorScale

ColorScale class

A color scale created from linear stops

Signature:
export declare class ColorScale

Constructors

ConstructorModifiersDescription
(constructor)(stops)Constructs a new instance of the ColorScale class

Methods

MethodModifiersDescription
clone()
createBalancedColorScale(colors)static
findNextColor(position, contrast, searchDown, interpolationMode, contrastErrorMargin, maxSearchIterations)
getColor(position, interpolationMode)
trim(lowerBound, upperBound, interpolationMode)