Myndex / SAPC-APCA

APCA (Accessible Perceptual Contrast Algorithm) is a new method for predicting contrast for use in emerging web standards (WCAG 3) for determining readability contrast. APCA is derived form the SAPC (S-LUV Advanced Predictive Color) which is an accessibility-oriented color appearance model designed for self-illuminated displays.
https://git.apcacontrast.com/documentation/APCAeasyIntro
Other
435 stars 14 forks source link

Feature request: provide URL for chosen colors #2

Closed bruce-usab closed 3 years ago

bruce-usab commented 4 years ago

I would like to be able to give someone a URL to SAPC that starts with my chosen colors.

For example the WebAIM Contrast Checker has a "permalink" feature, so I can start with red on white: http://webaim.org/resources/contrastchecker/?fcolor=FF0000&bcolor=FFFFFF

Myndex commented 4 years ago

I would like to be able to give someone a URL to SAPC that starts with my chosen colors.

Hi @bruce-usab That's a good idea, I'll add it to the updates queue. Shouldn't be too hard.

A

Myndex commented 3 years ago

Done, URLs with the color, and a number of other enhancements.

For giggles, here's the WorstColorPairEver

https://www.myndex.com/SAPC/?BG=ff0000&txt=009d00

bruce-usab commented 3 years ago

That is impressive! I had assumes a zero was only possible with two identical colors!

Myndex commented 3 years ago

That is impressive! I had assumes a zero was only possible with two identical colors!

Hey @bruce-usab Well, might not be a true zero... the math clamps all contrasts under 15% to zero, as that avoids a significant complication in the math, which I have attempted to make as simple as possible!