gradientMap:PointwiseFilter< { amount:{ default:1; description:"Blend between the original (0) and the full recolouring (1)."; label:"Amount"; max:1; min:0; step:0.01; type:"float"; }; highlights:{ default:readonly[1,0.85,0.55]; description:"Colour for the brightest tones."; label:"Highlights"; type:"color"; }; midpoint:{ default:0.5; description:"Which brightness gets the midtone colour; used only when the midtone colour is on."; label:"Midpoint"; max:0.95; min:0.05; step:0.01; type:"float"; }; midtones:{ default:readonly[0.8,0.25,0.35]; description:"Colour for the middle tones; used only when the midtone colour is on."; label:"Midtones"; type:"color"; }; shadows:{ default:readonly[0.08,0.04,0.25]; description:"Colour for the darkest tones."; label:"Shadows"; type:"color"; }; tritone:{ default:false; description:"Add a third colour between the other two."; label:"Midtone colour"; type:"bool"; }; }, > = ...
Gradient map (duotone / tritone): the encoded luminance of the straight colour picks a colour
from a ramp, shadows at 0 and highlights at 1, optionally passing through a midtone colour at
midpoint. The ramp is interpolated in sRGB-encoded units, as photo editors do, and amount
blends the result with the original in linear light. Luminance outside [0, 1] clamps to the end
colours.
Gradient map (duotone / tritone): the encoded luminance of the straight colour picks a colour from a ramp, shadows at 0 and highlights at 1, optionally passing through a midtone colour at
midpoint. The ramp is interpolated in sRGB-encoded units, as photo editors do, andamountblends the result with the original in linear light. Luminance outside [0, 1] clamps to the end colours.