color-maps

Crates.iocolor-maps
lib.rscolor-maps
version0.1.0
sourcesrc
created_at2021-02-27 15:39:50.421984
updated_at2021-02-27 15:39:50.421984
descriptionDefines X and HTML color maps
homepage
repositoryhttps://github.com/MoAlyousef/color-maps
max_upload_size
id361401
size49,058
Mohammed Alyousef (MoAlyousef)

documentation

https://docs.rs/color-maps

README

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));
}
Commit count: 2

cargo fmt