Project

monsterid

0.0
No commit activity in last 3 years
No release in over 3 years
Port/rework of the php script, with new monsters snatched from the WP plugin
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.1
~> 1.14

Runtime

 Project Readme

MonsterID

A port of the php script by Andreas Gohr (http://www.splitbrain.org/projects/monsterid). Actually kinda more like a rewrite.

After version 0.4 only ChunkyPNG is required, thus MonsterID now only requires pure ruby. :) If OilyPNG is available, MonsterID will load it, and be as fast as before. Make sure OilyPNG is at least v1.2.1, as <=1.2.0 has a bug with transparency.

Feel free to use/steal/share/improve.

USAGE

require 'monsterid'

monster = MonsterID.new('email@somewhere.com')
print monster.id # SHA1 of seed
monster.save("~/monsters/#{monster.id}.png") # monster
print monster.to_datastream # Prints raw PNG

Copyright (c) 2014-2017 Knut Aldrin. See LICENSE for further details.