colorhash

Crates.iocolorhash
lib.rscolorhash
version0.1.3
sourcesrc
created_at2024-01-21 10:33:03.553806
updated_at2024-01-21 23:11:59.483806
descriptionA hashing function to convert text strings into colors
homepage
repositoryhttps://github.com/berkus/colorhash
max_upload_size
id1107484
size11,345
engineer (github:cysharp:engineer)

documentation

README

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

Commit count: 0

cargo fmt