Git Product home page Git Product logo

Comments (1)

carlosame avatar carlosame commented on July 20, 2024

I want to ship Lab/LCh with version 3.4.0, so I implemented a procedure close to the spirit of what is being discussed in CSSWG's issue 5191: perform a chromaticity reduction until the clipped value is within a ΔE2000 of 2 from the non-clipped RGB.

Here are some figures from the unit tests, where ΔE2000 is the distance from the original to the clamped color:

Original RGB ΔE2000
lab(54.2324% 80.9288 70.8493) #f00 0.334
lab(72% 15.9649 130.0235) rgb(85.74%, 65.89%, 0%) 9.948
lab(59% -100.8654 78.8047) rgb(0%, 65.42%, 16.8%) 9.727
lch(54.2324% 107.5597 41.2006) #f00 0.334
lch(72% 131 83) rgb(85.74%, 65.89%, 0%) 9.948
lch(59% 128 142) rgb(0%, 65.42%, 16.8%) 9.727

Closing the issue.

from css4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.