identicone
v1.0.0
Published
A random identicon avatar generator Library.
Downloads
4
Maintainers
Readme
Identicone
A random identicon avatar generator Library.
Public API
(new Identicone).generate(Object options, Function callback);
Parameters
options: A plain object with uid {uid: 'your-uid'}
Like email, token, uid etc.
callback: function callback
Usage
const identicone = new Identicone();
identicone.generate({uid:'[email protected]'},
function(canvas, blobURL, dataURL, blob) {
// document.body.append(canvas);
// console.log(blobURL, dataURL);
});
Identicons example