Giter Club home page Giter Club logo

Comments (6)

shawnohare avatar shawnohare commented on August 21, 2024

Is CIELab format parseable now? I notice only the output task has been checked. I was excited to use this tool, but pastel could not parse the CIELab format as of a fresh install yesterday.

from pastel.

sharkdp avatar sharkdp commented on August 21, 2024

The reason I closed this ticket is that conversion from Lab (to RGB) can be confusing because you can easily reach the edge of RGB space (fully saturated colors), because the sRGB gamut has such a weird shape in Lab space.

In any case, that's not really a reason not to implement this. We should add this.

This should be really straightforward to implement, as we already have Color::from_lab. It just needs a simple Regex in src/cli/parser.rs.

from pastel.

saidsay-so avatar saidsay-so commented on August 21, 2024

Hi!
I tried to parse this format but there isn't a string to distinguish them (like HSL() or RGB()) so I just use the prefix CEILab(). Is it good?

from pastel.

sharkdp avatar sharkdp commented on August 21, 2024

@musikid Thank you for looking into this. I think it would be great if we could support both CIELab(…) (not CEI…) as well as Lab(…), case insensitive.

Regex could be something like (cie)?lab\(…

from pastel.

saidsay-so avatar saidsay-so commented on August 21, 2024

Oh yes, sorry! It's effectively CIELAB. And I think that the regex should be more like (?:cie)?lab\( because we don't need to capture this group.

from pastel.

sharkdp avatar sharkdp commented on August 21, 2024

closed via #101 by @musikid

from pastel.

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.