Skip to content

Function: lutCoord() ​

ts
function lutCoord(t, size?): number;

Experimental

Texture coordinate for t ∈ [0, 1] so that t = 0 and t = 1 hit the centers of the first and last texels exactly (mirrors the shader).

Parameters ​

ParameterTypeDefault value
tnumberundefined
sizenumberCOLORSCALE_LUT_SIZE

Returns ​

number

Released under the MIT License.