channelBlur
Blurs red, green and blue by separate amounts, for a soft chromatic fringe.
channelBlur(opts: {red: PropRef; green: PropRef; blue: PropRef}): ComputeBackedEffect
Import effects from shaders/std and use effects.blurs.channelBlur.
Each of red, green and blue is a prop from 0 to 100; 100 is a radius of about 10 pixels. A channel at 0 stays exactly sharp.
Parameters
| Name | Type | Notes |
|---|---|---|
opts | {red: PropRef; green: PropRef; blue: PropRef} |
Example
...channelBlur({red: p('redIntensity'), green: p('greenIntensity'), blue: p('blueIntensity')})
See also
gaussianBlur— A soft, even blur of the child.rgbSplit— The child with its red and blue pulled a little to either side, like a misaligned CRT.