Crates.io | blockies |
lib.rs | blockies |
version | 0.3.0 |
source | src |
created_at | 2017-03-24 06:49:55.481996 |
updated_at | 2019-05-30 06:54:29.481241 |
description | Library that generates blocky identicons. |
homepage | https://github.com/debris/blockies.rs |
repository | |
max_upload_size | |
id | 9126 |
size | 14,442 |
library that generates blocky identicons
Rust implementation of javascript blockies library. Supports also ethereum blockies
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);
build with
cargo build --release -p blockies-cli
blockies 0.1.1
debris <marek.kotewicz@gmail.com>
blockies cli
USAGE:
blockies [OPTIONS] --seed <seed>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--mode <mode> Choose blockies image type
--output <output> Output file path
--scale <scale> Blockies pixel size
--seed <seed> Seed phrase for generating new image
--size <size> Blockies image size