Levels
Levels sets the black point, white point, and midtone gamma directly — the same control photographers have used since darkroom printing, driven from the histogram.
Parameters
| Parameter | Type | Range | Default | What it does |
|---|---|---|---|---|
| Black | number | 0 to 255 | 0 | Input level mapped to pure black. Raising it crushes shadow detail. |
| White | number | 0 to 255 | 255 | Input level mapped to pure white. Lowering it blows out highlight detail. |
| Gamma | number | 0.1 to 3 | 1 | Midtone brightness, independent of the black/white points. |
How it works
Levels builds a piecewise tone curve from three anchors — black, midtone, and white — where the midtone anchor's position is derived from the gamma value. Everything below the black point clips to pure black, everything above the white point clips to pure white, and the gamma value bows the response curve brighter or darker in between without moving either endpoint.
See also
Tone Curve offers full manual control over the response curve instead of the three fixed anchors here.
Control preview
JSON structure
{
"id": "levels",
"enabled": true,
"params": {
"black": 0,
"white": 255,
"gamma": 1
}
}