Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.3 KB

README.md

File metadata and controls

30 lines (17 loc) · 1.3 KB

pixel-sprite-generator

Haxe port of Pixel Sprite Generator by zfedoran.

Live Example

SWF - https://pub.darekgreenly.com/github/pixel-sprite-generator/PixelSpriteGenerator.swf

HTML/JS - https://pub.darekgreenly.com/github/pixel-sprite-generator/index.html

Installation

Using Haxelib

haxelib install pixel-sprite-generator

Algorithm

The sprites are generated by using a two dimensional mask. The values in the mask are then randomized and mirrored. The resulting template is rendered to a canvas element.

The algorithm is explained in more detail on Dave Bollinger's website.