berkus / colorhash

Consistently convert string to a color representation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

colorhash

Convert a string to a color representation consistently by using a sha256 hash.

Based on color-hash for JS. Doesn't use a custom hashing function, it's always sha256.

To try out how it works:

rustup target add wasm32-unknown-unknown
cargo install trunk
cd demo-page
trunk serve

You should see a result like this:

Demo page

About

Consistently convert string to a color representation


Languages

Language:Rust 90.9%Language:HTML 9.1%