Code Monkey home page Code Monkey logo

evelogo's Introduction

EVE Online Logo Generator.

This python module lets you generate corporation logos.


LICENSE:
This software is released under the MIT license. See evelogo.py for details.


REQUIREMENTS:
- Python 2.x
- Python Imaging Library 1.1.6 or better
- Tyrannis Pre-rendered Corporation Logo Symbols pack.


INSTALLATION:
Place the evelogo.py either in your site-packages folder or in your project
dir, whichever is appropriate for your project.

Download the corplogos pack:

   http://dl.eve-files.com/media/corp/Entity/corplogos.7z

Extract the corplogos archive and place the corplogos folder anywhere you want.
If you place it in your project's work folder, the module will work without
having to set the resourcePath in your code.


Example usage:
import eveapi
import evelogo

evelogo.resourcePath = "wherever/you/put/corplogos/"

YOUR_USERID = 123
YOUR_APIKEY = "bla bla bla"

# Generate logos directly from parameters:
logo = evelogo.CorporationLogo([[539, 520, 461], [672, 675, 672]])
logo.save("xfi1.png")

# Generate large opaque logo image with blue background:
logo = evelogo.CorporationLogo([[539, 520, 461], [672, 675, 672]], size=96, transparent=False, bgcolor=(33,133,233))
logo.save("xfi2.png")

# Or use the eveapi module!
api = eveapi.EVEAPIConnection()
corpsheet = api.corp.CorporationSheet(userID=YOUR_USERID, apiKey=YOUR_APIKEY, corporationID=219220371)
logo = evelogo.CorporationLogo(corpsheet.logo)
logo.save("xfi3.png")

evelogo's People

Contributors

ntt avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.