Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidcelis/spritesheet
A small helper class to convert .gifs to sprites.
https://github.com/davidcelis/spritesheet
Last synced: about 1 month ago
JSON representation
A small helper class to convert .gifs to sprites.
- Host: GitHub
- URL: https://github.com/davidcelis/spritesheet
- Owner: davidcelis
- License: mit
- Created: 2012-07-11T16:35:42.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-07-11T16:50:04.000Z (over 12 years ago)
- Last Synced: 2024-10-12T08:35:16.737Z (2 months ago)
- Language: Ruby
- Size: 126 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.mdown
- License: LICENSE
Awesome Lists containing this project
README
# SpriteSheet
A small helper class to convert .gifs to sprites that can be used by other
Frameworks suchs as EaselJS.Work In Progress!
## Installation
gem install spritesheet
## Usage
Assuming we have this gif 'example.gif':
![]( https://github.com/noxoc/SpriteSheet/raw/master/test/assets/example.gif )
in order to get this:
![]( https://github.com/noxoc/SpriteSheet/raw/master/test/assets/example_sheet.jpg )
You can either create them with ruby code:
sheet = Sheet.new("example.gif")
sheet.write_to("example_sheet.jpg")or on the commandline
$ spritesheet example.gif example_sheet.jpg
powered by [`RMagick`](https://github.com/rmagick/rmagick)