Skip to content

Function: createColorscaleTexture() ​

ts
function createColorscaleTexture(scale, space?): DataTexture;

Experimental

Create a LUT texture (not cached; prefer acquireColorscaleTexture).

Parameters ​

ParameterTypeDefault value
scaleColorscaleundefined
spaceColorscaleInterpolation'rgb'

Returns ​

DataTexture

Released under the MIT License.