// Example, construct LUT with regular color steps from an array of colors. constlut = newLUT({ interpolate:true, steps:regularColorSteps(0, 100, [ ColorCSS('red'), ColorCSS('blue'), ColorCSS('green') ]) })
Returns
Array of LUTSteps which can be used to construct a LUT object.
Parameters
valueMin: number
Min LUT value. Attached to the first color in the palette.
valueMax: number
Max LUT value. Attached to the last color in the palette.
Convenience function that maps a color palette + value range to Color Lookup Table steps.
Equal to following one-liner:
Used like this:
Returns
Array of LUTSteps which can be used to construct a LUT object.