2 releases

Uses old Rust 2015

0.1.1 Jan 29, 2018
0.1.0 Jan 14, 2018

#255 in #hashing

MIT license

3KB

CHA Color Hashing Algorithm

Hash an input data string into an RGB color.

Usage

extern crate cha;
use cha::Color;

fn main() {
  let color = Color::from("foo~");
  assert_eq!(format!("{}", color.to_color_string()), "#06CBB2");
  assert_eq!(format!("{:?}", color), "Color(6, 203, 178)");
}

Dependencies

~5–14MB
~239K SLoC