solarize

Invert only the bright parts of the child, the darkroom solarization look.

solarize(slots: {threshold: ArgSpec; strength: ArgSpec}): PointwiseEffect

Import effects from shaders/std and use effects.color.solarize.

threshold (0–1) is the brightness above which a pixel flips. strength (0–1) fades the flipped result over the original: 0 is untouched, 1 is fully solarized.

Parameters

NameTypeNotes
slots{threshold: ArgSpec; strength: ArgSpec}

Example

effect: solarize({threshold: p('threshold'), strength: p('strength')})

Tip. Declare identityWhen: isZero('strength').

See also

  • invert — Flip every color of the child to its negative.
  • posterize — Reduce the child to a few flat color levels, like a screen-printed poster.

Used by

Solarize