color_maps/
lib.rs

1//! # color-maps
2//!
3//! A simple crate which provides html and X color map with names (as keys) and their (r, g, b) values.
4//!
5//! ## Usage
6//! ```toml
7//! [dependencies]
8//! color-maps = "0.1"
9//! ```
10//!
11//! ```rust
12//! use color_maps::*;
13//!
14//! fn main() {
15//!     let html_black = html::HTML_MAP.get("Black").unwrap();
16//!     assert_eq!(*html_black, (0, 0, 0));
17//!    
18//!     let x_black = x::X_MAP.get("black").unwrap();
19//!     assert_eq!(*x_black, (0, 0, 0));
20//! }
21//! ```
22
23/// Defines an X color map
24pub mod x;
25/// Defines an html color map
26pub mod html;
27
28#[macro_use]
29extern crate lazy_static;