Skip to content

Chris00/rust-color-brewery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Colors palettes and color gradients

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages