decay

Fade every channel toward 0, halving every halfLife seconds.

decay(config: {halfLife: OpArg}): DecayOp

Import op from shaders/std and use op.decay.

Parameters

NameTypeNotes
config{halfLife: OpArg}

Example

`op.decay({halfLife: 1.5})`