1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
//! # color-maps //! //! A simple crate which provides html and X color map with names (as keys) and their (r, g, b) values. //! //! ## Usage //! ```toml //! [dependencies] //! color-maps = "0.1" //! ``` //! //! ```rust //! 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)); //! } //! ``` /// Defines an X color map pub mod x; /// Defines an html color map pub mod html; #[macro_use] extern crate lazy_static;