GithubHelp home page GithubHelp logo

Comments (2)

facelessuser avatar facelessuser commented on June 14, 2024

Maybe color(lab 44.36 36.05 -58.99) is a typo? I always find the CSS spec frustrating as there are always ambiguous things.

I'm curious if you were to use color(lab 1 36.05 -58.99) would it be lab(100% 36.05 -58.99)? If so, is 36.05 for a treated like 100 * 36.05 (which seems wrong)? Or are numbers treated as numbers and only percents get scaled (so a one way conversion)?

I guess to explain it better, 100% will always translate to a float between 0 - 1. But numbers are treated as absolute. When dealing with Lab, whose channel's a and b can be between +/-160 (technically can exceed that) 100% doesn't actually translate well to the full range of the channel. So I imagine you wouldn't normally want to use percent there, but are percent channels handled special? Lightness in Lab is clearly a percent, do you scale that to 0 - 1 and not a and b? Or do you still scale none in Lab to 0 - 1 and just not use percent in Lab?

from coloraide.

facelessuser avatar facelessuser commented on June 14, 2024

It seems we now have clarification. Percentage only channels will not translate to 0 - 1. So CIE Lab and friends will have 100% equal 100.

from coloraide.

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.