0.1.0 • Published 9 years ago

github-like-identicons v0.1.0

Weekly downloads
13
License
-
Repository
github
Last release
9 years ago

GitHub-like Identicons

NodeJS implementation of GitHub-like identicons.

Install

npm install github-like-identicons

Example

var identicon = require("github-like-identicon);
var icon = identicon("Lapixx");

console.log(icon); // { mask : [], color : {} }

API

This module exposes a single function to generate the identicon for a given username.

createIdenticon(username)

Returns an object containing:

  • mask: A 5x5 nested array containing booleans indicating if a pixel is part of the identicon (true) or the background (false)
  • color: An object containing the keys r, g, b and h, s, v, each with a value in the range (0-255) indicating the colour of the identicon (in RGB and HSV)
0.1.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago