Skip to content

textmode.synth.js / SynthSource / shift

Method: shift()

ts
shift(
   r?, 
   g?, 
   b?, 
   a?): this;

Shift color channels by adding offset values.

Parameters

ParameterTypeDescription
r?SynthParameterValueRed channel shift (default: 0.5)
g?SynthParameterValueGreen channel shift (default: 0.0)
b?SynthParameterValueBlue channel shift (default: 0.0)
a?SynthParameterValueAlpha channel shift (default: 0.0)

Returns

this

Example