io84-jazzicon
A starter project using react-hyperscript and beefy with ES6.
Last updated a year ago by rushairer .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install io84-jazzicon 
SYNC missed versions from official npm registry.

Jazzicon

Jazzy Identicons

Say goodbye to boring blocky identicons that look like they came out of the 70s, and replace them with jazzy, colorful collages that more likely came out of the 80's.

example

Installation

npm install io84-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('./')
//or
//<script src="dist/io84-jazzicon.min.js"></script>

var body = document.querySelector('body')
for (var i = 0; i < 600; i++) {
    var icon = jazzicon(100, i)
    var img = document.createElement('img')
    img.src = icon
    body.appendChild(img)
}

Example

You can run an example by installing beefy (npm i -g beefy) and then running npm run start.

Current Tags

  • 2.0.1                                ...           latest (a year ago)

1 Versions

  • 2.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |