1 unstable release

0.1.0 Feb 27, 2021

#915 in Images

Download history 57/week @ 2025-08-06 79/week @ 2025-08-13 96/week @ 2025-08-20 116/week @ 2025-08-27 124/week @ 2025-09-03 106/week @ 2025-09-10 73/week @ 2025-09-17 196/week @ 2025-09-24 73/week @ 2025-10-01 51/week @ 2025-10-08 100/week @ 2025-10-15 105/week @ 2025-10-22 76/week @ 2025-10-29 72/week @ 2025-11-05 75/week @ 2025-11-12 81/week @ 2025-11-19

315 downloads per month
Used in 8 crates (3 directly)

MIT license

48KB
914 lines

color-maps

A simple crate which provides html and X color map with names (as keys) and their (r, g, b) values.

Usage

[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));
}

Dependencies

~10KB