Skip to content

Identicons for recognising Didux Addresses.

Notifications You must be signed in to change notification settings

didux-io/DiduxIcon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiduxIcon

Identicons

Live Example

Say goodbye to boring blocky identicons that look like they came out of the 70s, and replace them with colorful collages that more likely came out of the 80's. Colors are inspired on the Didux website, logo and more.

example

Installation

npm install diduxicon -S

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 diduxicon = require('diduxicon')

var body = document.querySelector('body')
for(var i = 0; i < 60; i++) {
  var el = diduxicon(100, Math.round(Math.random() * 10000000))
  body.appendChild(el)
}

Example

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

Example

Credits to Dan Finlay for setting up Jazz Icons.

About

Identicons for recognising Didux Addresses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%