snowy

“snowy” is an identicon implements with the snow crystal motif.

How to usage

require "snowy"
require "zlib"

str = "abcdefg"
salt = 0
id = Zlib.crc32(str, salt) # transcode to 32-bits integer
pngdata = Snowy.generate_to_png(id, size: 256)
File.binwrite("snowy.png", pngdata)

Demonstration with web browser

$ gem install sinatra haml
$ ruby snowy-demo.rb

And, access to localhost:4567/ on web browser.