Crates.io | color-brewery |
lib.rs | color-brewery |
version | 0.1.0 |
source | src |
created_at | 2023-02-26 13:48:58.092438 |
updated_at | 2023-02-26 13:48:58.092438 |
description | Color palettes and gradients |
homepage | https://github.com/Chris00/rust-color-brewery |
repository | https://github.com/Chris00/rust-color-brewery |
max_upload_size | |
id | 795093 |
size | 301,924 |
This crate define colors palettes an provide a searchable access to find those matching some criteria. In particular, it contains all the palettes of Matplotlib and of ColorBrewer designed by the cartographer Cynthia A. Brewer to assist mapmakers in choosing appropriate color schemes. As a convenience, color gradients based on those palettes are also implemented.
The default representation of colors is the one given by the rgb
crate but any type can be used: it suffices it implements the
RGBColor
trait.
Run the following Cargo command in your project directory:
cargo add color-brewery
or add the following line to your Cargo.toml
:
[dependencies]
color-brewery = "0.1"
See doc.rs.