| Crates.io | color-maps |
| lib.rs | color-maps |
| version | 0.1.0 |
| created_at | 2021-02-27 15:39:50.421984+00 |
| updated_at | 2021-02-27 15:39:50.421984+00 |
| description | Defines X and HTML color maps |
| homepage | |
| repository | https://github.com/MoAlyousef/color-maps |
| max_upload_size | |
| id | 361401 |
| size | 49,058 |
A simple crate which provides html and X color map with names (as keys) and their (r, g, b) values.
[dependencies]
color-maps = "0.1"
use color_maps::*;
fn main() {
let html_black = html::HTML_MAP.get("Black").unwrap();
assert_eq!(*html_black, (0, 0, 0));
let x_black = x::X_MAP.get("black").unwrap();
assert_eq!(*x_black, (0, 0, 0));
}