Brightness was added after the contrast stretch. Measured on PowerPoint's export of grey ramps (5 x 5 grid of -80..80% brightness and contrast): contrast scales about mid-grey (x(1+c) below zero, /(1-c) above) and brightness adds b * 255 scaled by (1 + cf) / 2, half before the stretch and half after; +40% brightness with +40% contrast maps black to 54, not 17. DeckCraft now matches the 25 ramps within 5 grey levels. Wild synthetic set: brightness/contrast grid 15.93 -> 13.36, recolour slide 8.74 -> 7.60. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| tests/fixtures | ||
| Cargo.toml | ||