Skip to content

Function: createToonGradient() ​

ts
function createToonGradient(steps): DataTexture;

Experimental

A toon gradient of steps bands (nearest-filtered, so the shading steps).

Parameters ​

ParameterType
stepsnumber

Returns ​

DataTexture

Released under the MIT License.