← f_ notebook · Mirrors · Color / Tone

f_luma_processor, live ​

Isolates a luma band between two breakpoints and shifts only that band's saturation, brightness and hue, leaving the rest of the image untouched.

The cell below steps the NumPy mirror that f_luma_processor's tests are written against, in your browser. It is the NumPy mirror, not the Max patch, and it is not claimed to match the patch bit for bit.

f_luma_processor · NumPy mirror (Pyodide) · not the Max patch
Downloads about 15 MB the first time (Python and NumPy).
  • low/mid sets the lower breakpoint of the luma band that gets processed.
  • mid/high sets the upper breakpoint of the luma band; the two breakpoints are sorted, so the order does not matter.
  • edge falloff softens the band's boundaries (a smoothstep ramp on each edge).
  • saturation adds to the band's saturation (clamped to 0-1); negative values gray it out, positive values vivify it.
  • luma shift adds to the band's brightness (clamped to 0-1).
  • hue shift rotates the band's hue in degrees (wraps around).
  • The input select chooses the texture to grade: bars (color), rings, or a gradient.

reference doc · patcher · luma_processor_mirror.py

← Hue ProcessorSeparate →