Skip to content

naknomum/hexicon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexicon

A hexicon is like an identicon, but in the form of a hexagon.

hexicon.js

This javascript library creates the hexicon using an svg. The hashing function used is sdbm, which is what I found used in some identicon libraries. The patterning and color algorithms are my own invention. See: details on how the drawing is made.

Example

Try out some dynamical examples of hexicons in action.

Usage

var el = document.getElementById('svg-element');

var hex = new Hexicon(el, "some text");
hex.updateText("something different");

var hash = hex.getHash();
hex.updateHash('3ddd0999');
hex.updateHash(1037896089);

Similar projects

Another identicon project of mine, Solacon.svg.

For related work, check out Awesome Identicons, a curated list of visual hashes maintained by Husam ABBOUD.

About

Like identicons, but a hexagon, and svg.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published