color.js icon indicating copy to clipboard operation
color.js copied to clipboard

Add new GMA Scale LH Achromatic

Open facelessuser opened this issue 1 year ago • 3 comments

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

facelessuser avatar Feb 22 '24 04:02 facelessuser

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...

QR Code

Use your smartphone camera to open QR code link.

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

netlify[bot] avatar Feb 22 '24 04:02 netlify[bot]

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

facelessuser avatar Feb 22 '24 04:02 facelessuser

I'm putting this in draft as there are a few more things I'm exploring.

facelessuser avatar Feb 22 '24 17:02 facelessuser

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.

facelessuser avatar Feb 24 '24 18:02 facelessuser