color-brewery

Crates.iocolor-brewery
lib.rscolor-brewery
version0.1.0
sourcesrc
created_at2023-02-26 13:48:58.092438
updated_at2023-02-26 13:48:58.092438
descriptionColor palettes and gradients
homepagehttps://github.com/Chris00/rust-color-brewery
repositoryhttps://github.com/Chris00/rust-color-brewery
max_upload_size
id795093
size301,924
Christophe Troestler (Chris00)

documentation

https://docs.rs/color-brewery

README

Color brewery

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.

Installation

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"

Documentation

See doc.rs.

Commit count: 13

cargo fmt