color-maps 0.1.0

Defines X and HTML color maps
Documentation
  • Coverage
  • 50%
    3 out of 6 items documented1 out of 3 items with examples
  • Size
  • Source code size: 48.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.64 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • MoAlyousef/color-maps
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • MoAlyousef

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