Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danfinlay/jazzicon
Jazzy deterministic identicons for a more entertaining future.
https://github.com/danfinlay/jazzicon
Last synced: 27 days ago
JSON representation
Jazzy deterministic identicons for a more entertaining future.
- Host: GitHub
- URL: https://github.com/danfinlay/jazzicon
- Owner: danfinlay
- License: isc
- Created: 2016-05-11T00:45:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-14T19:28:56.000Z (almost 2 years ago)
- Last Synced: 2024-08-03T22:05:38.756Z (4 months ago)
- Language: JavaScript
- Size: 274 KB
- Stars: 207
- Watchers: 4
- Forks: 64
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-identicons - Jazzicon
README
# Jazzicon
## Jazzy Identicons[Live Example](http://requirebin.com/?gist=64341df46d79cc72567417c022e9d0ee)
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](./example.png)
## Installation
```
npm install jazzicon -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!
```javascript
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`.