blockies

Crates.ioblockies
lib.rsblockies
version0.3.0
sourcesrc
created_at2017-03-24 06:49:55.481996
updated_at2019-05-30 06:54:29.481241
descriptionLibrary that generates blocky identicons.
homepagehttps://github.com/debris/blockies.rs
repository
max_upload_size
id9126
size14,442
Core devs (github:paritytech:core-devs)

documentation

README

blockies.rs

Build Status

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);

CLI Usage

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

TODO

  • specifying colors via cli
Commit count: 0

cargo fmt