adjust

Brightness and contrast, pivoting around mid-grey.

adjust(opts: {brightness: ArgSpec; contrast: ArgSpec}): OverlayStage

Import effects from shaders/std and use effects.blurs.adjust.

1 leaves both unchanged; 0.5–2 is the usual range. Works on the three-channel color of a stack begun with rgbSplit.

Parameters

NameTypeNotes
opts{brightness: ArgSpec; contrast: ArgSpec}

Example

adjust({brightness: p('brightness'), contrast: p('contrast')})

See also

  • rgbSplit — The child with its red and blue pulled a little to either side, like a misaligned CRT.
  • scanlines — Horizontal scanlines darkening the child in a smooth wave.
  • opaque — Closes a three-channel stack as a solid color with alpha 1.

Used by

CRTScreen