Sha256: b1d21bf4d037e26be8b8a2d930257fd74a0958e3c2a693a0c211faaec19ef6e5

Contents?: true

Size: 738 Bytes

Versions: 2

Compression:

Stored size: 738 Bytes

Contents

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
=====

```ruby
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.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
monsterid-0.4.2 README.md
monsterid-0.4.0 README.md