GithubHelp home page GithubHelp logo

mazznoer / colorgrad-rs Goto Github PK

View Code? Open in Web Editor NEW
268.0 7.0 8.0 536 KB

Rust color scales library

License: Other

Rust 100.00%
color color-scales color-gradient colormap visualization visual-encoding gimp ggr

colorgrad-rs's Introduction

colorgrad-rs's People

Contributors

hbina avatar jackyarndley avatar mazznoer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

colorgrad-rs's Issues

Plans for v0.7.0

  • f64 -> f32.
  • LinearGradient, CatmullRomGradient, BasisGradient, etc will be return directly. No more Box.

Custom domains for presets

👋 Thanks for the library.

Have you thought about providing custom domains for the presets, similar to how d3-color does it, unless there's a different way of doing this with colorgrad-rs? Something along the lines of...

colorgrad::spectral().domain(my_domain_min, my_domain_max)

Radial gradients?

This looks like a really nice crate!
Any recommendations on how to apply this to generate radial gradients?

Make gradient send?

Are you able to change Gradient to be Send? I think changing the definition to:

gradient: Box<dyn GradientBase + Send>

should work (at least it does on my end).

Implement Clone for Gradient

I am not sure whether there is a specific reason for the Gradient not having implemented Clone or it just happens to be that way.

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.