-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME
36 lines (21 loc) · 1.49 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
== EVE Corplogo Generator (CLG)
This is a Rails plugin/generic library for Ruby to generate the corporation logos used in the MMORPG EVE Online.
=== Example
Before usage, you need to include the library
require 'eve_corplogo_generator'
Then you can use the generator.
Eve::CorporateLogo::Logo.new([437,456,478], [674,677,677], 'output.png') # => Writes the corporation logo for Vanguard Frontiers to output.png
Eve::CorporateLogo::Logo.new([437,456,478], [674,677,677]) # => Creates the image
Eve::CorporateLogo::Logo.new([437,456,478], [674,677,677]).image.to_blob # => The image data
Eve::CorporateLogo::Logo.new([437,456,478], [674,677,677], 'output.png', 'black') # => Writes the logo to output.png with a black background
The two arrays in the examples above are the shapes and colors of the logo respectively.
=== Installing
Install to a Rails application using the following command (Rails 2.0.2 and greater)
ruby script/plugin install git://github.com/JamesHarrison/eve_corplogo_generator.git
If you are using an older Rails version, use
git clone git://github.com/JamesHarrison/eve_corplogo_generator.git vendor/plugins/eve_corplogo_generator
=== Documentation
Once installed, you can generate documentation using rdoc (cd vendor/plugins/eve_corplogo_generator;rake rdoc).
CLG Source Copyright (c) 2008 James Harrison, released under the MIT license.
Corporation Logo Images rendered by Entity.
EVE Online, EVE and all associated logos and designs are the intellectual property of CCP hf.