Skip to content

Executable that generates stylesheets and supporting documentation for sprite sheets generated by Zwoptex.app

Notifications You must be signed in to change notification settings

mmottola24/Sprite-Master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sprite Master

Sprite Master is a utility to automatically generate stylesheets and supporting docs from sprite sheets generated using Zwoptex.app. You can use the raw plist files generated by Zwoptex.app for coordinates or you can convert them to json using the free online tool at http://json.online-toolz.com/tools/xml-json-convertor.php

What is does

  • Generates stylesheet (css) with classes for each image
  • Generates documentation file with previews of each image and the css class name needed to use the image in your project

What it will do

  • Allow you to generate multiple colors of your sprite sheet ( using rmagick and imagick), output generated colored sprites and include color choosing selectors in css document

Dependencies

  • xml-simple
  • rmagick
  • json

How to Use

spritemaster [target] {options}

[target] : the source - .plist file generated from Zwoptex.app

Options

-i, --image [FILE] path to sprited image, defaults to [target] with .png extension instead of .plist

-p, --prefix [STRING] string that is prepended to generated css classes and filenames

-v, --version prints out the version number of spritemaster

-h, --help prints out help messages

Using Output

section coming soon

Contributors to Sprite Master

(In order of contribution date)

  • Michael Mottola
  • Nickolas Kenyeres

Want to Contribute?

We welcome anyone who wants to contribute to this project.

We encourage you to the fork the project and send us pull requests with your improvements. You will be added to the list of contributors unless you request to not be listed.

License

Copyright (c) 2011-2012 Michael Mottola, Nickolas Kenyeres

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Executable that generates stylesheets and supporting documentation for sprite sheets generated by Zwoptex.app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages