color-js / color.js

Color conversion & manipulation library by the editors of the CSS Color specifications
https://colorjs.io
MIT License
1.81k stars 80 forks source link

Demonstrate JND with colours that are different #538

Closed perey closed 5 days ago

perey commented 1 month ago

The "Color differences" page in the docs illustrates the Just Noticeable Difference (JND) with a pair of identical colours. This patch changes one of them slightly.

I don't know what the original intention was, although I assume that there being no difference isn't deliberate. So I went with a change that meant that ΔΕ > 2.3 for two of the three algorithms demonstrated. My thinking was that this gives the reader a chance to judge these algorithms (and/or the 2.3 threshold) against their own ability to see a difference.

netlify[bot] commented 1 month ago

Deploy Preview for colorjs ready!

Name Link
Latest commit cdab71078174ef5d61840830319ab14a853abaaa
Latest deploy log https://app.netlify.com/sites/colorjs/deploys/665c15f6aa93c400082618d2
Deploy Preview https://deploy-preview-538--colorjs.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

facelessuser commented 1 month ago

It does seem silly to ask the reader if two identical colors look the same...because of course they do. It seems like a good idea to alter the colors to be slightly different, but visually hard to distinguish.

svgeesus commented 5 days ago

I don't know what the original intention was,

Probably a "copy, paste, got distracted, thought I was done" operation. Thanks for fixing!!