Code Monkey home page Code Monkey logo

Comments (5)

Valentin271 avatar Valentin271 commented on May 24, 2024 1

I like this idea. But I'd prefer to avoid using palette (or any other deps) just for that.

I'd suggest putting this behind a palette feature. I believe most people will still use rgb.

If not to hard, we could also implement it by hand, but didn't really find a clear formula so maybe that's too much.

from ratatui.

kdheepak avatar kdheepak commented on May 24, 2024 1

My understanding is that it is a series of transformations to go from hsluv to rgb, and I'm assuming we wouldn't want to maintain that.

from ratatui.

joshka avatar joshka commented on May 24, 2024

Definitely needs a feature flag. I recall seeing a create that does more generic conversions like this. I'll find a link later today.

from ratatui.

orhun avatar orhun commented on May 24, 2024

I also think that this is a nice feature and we can gate it behind a feature flag for avoiding additional dependencies as default.

from ratatui.

joshka avatar joshka commented on May 24, 2024

https://github.com/Canop/coolor was the crate I was thinking of. It's not quite what we're thinking of here though.
I mentioned perhaps doing a Ratatui feature for it in Canop/coolor#2, but never got back to that.

Are there any other crates that already do the conversions between libraries?

from ratatui.

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.