1个不稳定版本

0.1.0 2021年2月27日

图像类别中排名619

Download history · Rust 包仓库 56/week @ 2024-03-11 · Rust 包仓库 58/week @ 2024-03-18 · Rust 包仓库 88/week @ 2024-03-25 · Rust 包仓库 101/week @ 2024-04-01 · Rust 包仓库 48/week @ 2024-04-08 · Rust 包仓库 62/week @ 2024-04-15 · Rust 包仓库 72/week @ 2024-04-22 · Rust 包仓库 59/week @ 2024-04-29 · Rust 包仓库 62/week @ 2024-05-06 · Rust 包仓库 58/week @ 2024-05-13 · Rust 包仓库 58/week @ 2024-05-20 · Rust 包仓库 57/week @ 2024-05-27 · Rust 包仓库 56/week @ 2024-06-03 · Rust 包仓库 43/week @ 2024-06-10 · Rust 包仓库 50/week @ 2024-06-17 · Rust 包仓库 56/week @ 2024-06-24 · Rust 包仓库

每月下载量210
8个crate中使用了(其中3个直接使用)

MIT许可

48KB
914

color-maps

一个简单的crate,提供带有名称(作为键)及其(r,g,b)值的HTML和X颜色映射。

使用方法

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

lib.rs:

color-maps

一个简单的crate,提供带有名称(作为键)及其(r,g,b)值的HTML和X颜色映射。

使用方法

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

依赖项

~10KB