mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 01:18:43 +00:00
The per-pixel reference mixed a type layer's fully covering pixel through the type gamma round trip, which leaves white one float step short of no ink (1 - 0.99999994). Vivid Light jumps exactly there (a source at full brightness gives full brightness, anything below over no brightness gives none), so a white glyph clipped onto a Vivid Light group over magenta became full magenta in the reference, while the compositor (which keeps covered pixels exact, like normal_gamma) gave no ink. The reference now treats a fully covering source like the compositor and the identity it is: the source's ink exactly. Adds a named regression test with the shrunk document and a neighbour test over Vivid/Linear/Pin Light, Hard Mix, Color Dodge/Burn, Normal, Multiply and Screen with type or pixels clipped, plus the proptest seed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>