Git Product home page Git Product logo

Comments (3)

ai avatar ai commented on June 30, 2024

I think we should ask about them. People already started to use them https://github.com/search?q=oklch&type=code

But I suggests calling the item oklch(), lch(), lab(), or oklab() color function since wide gamut is only one of the feature.

Maybe we should have another option of using Wide gamut colors (P3)?

from surveys.

SachaG avatar SachaG commented on June 30, 2024

@LeaVerou re: your email

Since "Wide Gamut Colors" doesn't include color() (which has its own question), I'd change that title to "Device Independent Colors". Then you can use "Wide Gamut Color" as a title for the color() question (including the inline code for color() as well of course)

I have to confess it's not clear to me how all these features relate to one another. color() is for specifying a color space, but it's not necessarily a wide gamut color space right?

And are lch(), lab(), etc. wide gamut color spaces or device independent colors? Or both?

from surveys.

LeaVerou avatar LeaVerou commented on June 30, 2024

color() is for specifying a color in one of the predefined color spaces, not for specifying a color space (there's @color-space for that, but it's too early to ask about that now). All predefined color spaces are "wide gamut" (i.e. wider than sRGB).

Lab/LCh and OKLab/OKLCh are device independent color spaces. They are not tied to a particular gamut, their gamut is essentially infinite (though in practice it's tied to the spectral locus, i.e. the spectrum of color visible to the human eye), so it's weird to refer to them as "wide gamut", even though infinite is trivially wider than sRGB.

That said, srgb is also allowed in color(). There's also XYZ, which is device independent and is specified through color(). However, in practice most people that know of/use color() use it with color spaces like display-p3 or rec2020.

from surveys.

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.