bba2d76957b5e22b55b8d863f3cd163126964a2c
Highlight/Shadow scaled R, G and B by one luma gain. That keeps the ratio but crushes absolute chroma, so -SH turned a saturated blue into near-black and -HL turned bright colours grey, and both sliders only bit at the very ends of the range (knees 0.80..1.00 / 0.00..0.30) — they read as dead on any photo without true whites or blacks. The curve now moves the luma and carries the colour difference (rgb - luma) along at clamp(gain, 0.55, 1.35), so hue survives darkening and lifting instead of collapsing to black or white. Both knobs are pure additive luma shifts with soft knees over the upper/lower half: the 0.50 midpoint moves under 3%, and the curve stays monotonic (the old multiplicative form was not — with hl=-1 a grey 0.73 came out darker than 0.80). Kotlin applyTone port and the native bench probe gates follow. Verified on device (4200x2800 probe: grey ramp + colour patches), library export at ratio 4:3: -10 highlight leaves the darks alone and drops white 243->189 with the sky still blue; -10 shadow keeps blue as dark blue (0,0,254)->(0,3,146), never black, ramp stays monotonic. Export keeps the source 4200x2800 as well, so nothing is cropped.
The file is empty.
Description
Languages
TypeScript
92.9%
Kotlin
5.7%
JavaScript
1.3%