blockies 0.3.0

Library that generates blocky identicons.
Documentation
  • Coverage
  • 100%
    12 out of 12 items documented3 out of 3 items with examples
  • Size
  • Source code size: 16.71 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.94 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • debris github:paritytech:core-devs

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