This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 6bf117b73c874aa2f89f6f8cc283fa423a436952
tree b0003a0cc6de534c752d53a052885341112cd13f
parent 809cf1de5d1629d693fc4da1a412457521f2d32b
tree b0003a0cc6de534c752d53a052885341112cd13f
parent 809cf1de5d1629d693fc4da1a412457521f2d32b
quilt /
| name | age | message | |
|---|---|---|---|
| |
ChangeLog | ||
| |
MIT-LICENSE | Sat May 10 03:43:57 -0700 2008 | |
| |
README.rdoc | Sun Jun 15 06:51:01 -0700 2008 | |
| |
Rakefile | ||
| |
lib/ | ||
| |
quilt.gemspec | ||
| |
test/ | Sun Jun 08 04:53:27 -0700 2008 |
README.rdoc
quilt
Description
a library for generating identicon.
Identicon: en.wikipedia.org/wiki/Identicon
Installation
Required RMagick or ruby-gd.
Archive Installation
rake install
Gem Installation
gem install quilt
Features/Problems
- Output file type is PNG only.
Synopsis
# input: any string
# output: 15 * 15 png (default)
identicon = Quilt::Identicon.new 'sample'
identicon.write 'sample15_15.png'
# input: identicon code(32 bit integer)
# output: 15 * 15 png (default)
identicon = Quilt::Identicon.new 1, :type => :code
identicon.write 'sample15_15_code.png'
# input: ip address
identicon = Quilt::Identicon.new '100.100.100.100', :type => :ip
identicon.write 'sample15_15_ip.png'
# output: 150 * 150 png
identicon = Quilt::Identicon.new 'sample', :scale => 10
identicon.write 'sample150_150.png'
# output: blob
identicon = Quilt::Identicon.new 'sample'
print identicon.to_blob
# change image library to Rmagick to GD
Quilt::Identicon.image_lib = Quilt::ImageGD
identicon = Quilt::Identicon.new 'sample'
identicon.write 'sample15_15_gd.png'
Copyright
| Author: | swdyh <youhei@gmail.com> |
| Copyright: | Copyright © 2008 swdyh |
| License: | The MIT License |








