color.js
color.js copied to clipboard
Add new GMA Scale LH Achromatic
Performs a similar approach as Scale LH, but instead scales color towards the achromatic version of itself. This is performed in a linear light RGB space. When scaling the color towards the achromatic color, it is done in an LRGB form that separates the lightness from the other components. This helps preserve lightness during the process and performs even better, especially in low light blue, which was more problematic in my first attempt.
The procedure is competitive with Scale LH using two iterations, performs even better with 4. 3 iterations was chosen as a middle ground.
Replaces #447
Deploy Preview for colorjs ready!
| Name | Link |
|---|---|
| Latest commit | 4a606ced73433c38cbfd1bdb7e640380021a3e9c |
| Latest deploy log | https://app.netlify.com/sites/colorjs/deploys/65d7534d63488300086816d3 |
| Deploy Preview | https://deploy-preview-449--colorjs.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
For reference, this is the source from where the LRGB approach came from: https://studylib.net/doc/14656976/the-prismatic-color-space-for-rgb-computations
I'm putting this in draft as there are a few more things I'm exploring.
After more experimentation, I'm abandoning in favor of #452. It just seems to do better. The use of LRGB was also a misstep as evaluations revealed lightness of out of gamut colors did not behave as I thought they did. Basically, while it did help reduce hue in some cases, it was purely by accident.