vignetteOverlay
Darkens the child toward its corners.
vignetteOverlay(opts: {radius: ArgSpec; intensity: ArgSpec}): OverlayStage
Import effects from shaders/std and use effects.blurs.vignetteOverlay.
radius (0–1) is how far the darkening reaches inward, 0 for the edges only and 1 for all the way to the centre. intensity (0–1) blends it in. Round on any canvas shape. Works on the three-channel color of a stack begun with rgbSplit.
Parameters
| Name | Type | Notes |
|---|---|---|
opts | {radius: ArgSpec; intensity: ArgSpec} |
Example
vignetteOverlay({radius: p('vignetteRadius'), intensity: p('vignetteIntensity')})
See also
scanlines— Horizontal scanlines darkening the child in a smooth wave.opaque— Closes a three-channel stack as a solid color with alpha 1.