Skip to content

cyphercodes96/Hydro-Snowflake-Identicon-Generator

Repository files navigation

Hydro-Snowflake-Identicon-Generator

A tiny library, based on blockies, for generating unique snowflake identicons for hydro snowflake addresses. These are not meant to replace user profiles, but as security icons, to allow the user to more easily check if an address he wants to interact with is the correct one. The symmetrical aspect of the icons allow our brain see faces or objects, making the icon more recognizable.

Sample blockies image

Use

var icon = hydroIdenticon.create({ // All options are optional
    seed: 'randstring', // seed used to generate icon data, default: random
    size: 50, // width/height of the icon in pixels, default: 125
});

document.body.appendChild(icon); // icon is a canvas element

In the above example the icon will be 50x50 pixels.

Blockies

https://github.com/ethereum/blockies

Notes

The defaults of size 125 generates 125x125 pixel icons. Below are some standard sizes that work well.

  • 24x24 {size: 24}
  • 50x50 {size: 50}

License

WTFPL

About

Generates unique snowflake identicons based on seed phrases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages