colorconv

This crate provides some features to convert color code, RGB or color name(if exists) to struct Color which holds the color information.

What makes this crate (kind of) unique is that it supports the color name conversion. For example:

```rust use colorconv::Color; use std::str::FromStr;

match Color::fromstr("yale blue") { Ok(color) => asserteq!(color.hex, "0f4d92".to_string()), Err(e) => eprintln!("{:?}", e), } ```

This conversion is based on https://github.com/jonathantneal/color-names.

Also, you can convert a color code or RGB:

```rust use colorconv::Color; use std::str::FromStr;

if let Ok(rustyred) = Color::fromstr("da2c43") { asserteq!(Some("rusty red".tostring()), rusty_red.name); }

let trueblue = Color::from([0, 115, 207]); asserteq!("0073cf".tostring(), trueblue.hex); ```