@almanackwallet/jazzicon
v1.0.0
Published
Jazz Icon
Downloads
2
Readme
Jazzicon
Jazzy Identicons
Installation
npm install @almanackwallet/jazzicon
Usage
Takes a pixel diameter and a javascript integer (seeds the shape), and gives you back a DOM element to use as you wish!
var jazzicon = require("jazzicon");
var body = document.querySelector("body");
for (var i = 0; i < 60; i++) {
var el = jazzicon(100, Math.round(Math.random() * 10000000));
body.appendChild(el);
}
Example
You can run an example by installing beefy (npm i -g beefy
) and then running npm run sample
.