Skip to content

textmode.synth.js / gradient

Function: gradient()

ts
function gradient(speed?): SynthSource;

Generate a rotating radial gradient.

Parameters

ParameterTypeDescription
speed?number | number[] | ((ctx) => number)Rotation speed (default: 0.0)

Returns

SynthSource

Example