Crate blockies

Source
Expand description

§blockies.rs

library that generates blocky identicons

Rust implementation of javascript blockies library. Supports also ethereum blockies

§Library usage

use blockies::Ethereum;

let blockies = Ethereum::default();
let mut png = Vec::new();

blockies.create_icon(&mut png, b"0x01122df2b7d1c0a6ad94589da045af3885bedbbc");

// `png` now contains a rendered image of the blockies for that address
assert_eq!(png.len(), 179);

Structs§

Classic
Context struct for creating an classic 2-color Blockies.
Ethereum
Context struct for creating an Ethereum-style 3-color Blockies.

Enums§

Error
Generic error type