mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
View › Proof Setup had two color blindness items, protanopia and deuteranopia. A third item, Color blindness – Tritanopia-type, proofs the canvas with a tritanopia simulation, and the Separations Preview panel's Proof Setup list offers it too. `view.proofSetup` takes `target: "tritanopia"`. The simulation follows Brettel, Viénot and Mollon (1997): a color keeps its L and M cone responses, and its S response is replaced so that it lies on one of two half-planes. Both contain the neutral axis; one passes through the 485 nm color and the other through the 660 nm color. The neutral axis runs to the display's white, so grays keep their value. The matrices are computed at compile time from the published inputs cited in the code. The protanopia and deuteranopia matrices are unchanged.