Demo using Geometrize Haxe and HaxeFlixel to recreate images with geometric primitives
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets/images
lib
screenshots
.gitignore
.gitmodules
.travis.yml
GeometrizeHaxeDemo.hxproj
GeometrizeState.hx
LICENSE
Main.hx
PixelFormatHelpers.hx
PlayState.hx
Project.xml
README.md

README.md

Project logo

Build Status

Geometrize Haxe is a Haxe library for recreating images with geometric primitives. This demo shows the library working with HaxeFlixel - run it in your browser.

Geometrized Lady of Shalott

Usage

The demo shows how images can be converted to shapes using Geometrize Haxe and then rendered as HaxeFlixel sprites. Open the demo and left click to cycle the example image being geometrized.

Geometrized Mona Lisa

The leftmost sprite shows the input image, the second shows the shapes image rendered by the Geometrize Haxe library, the third shows the shape image rendered by the HaxeFlixel game engine, and the rightmost show the most recently added shape.

Screenshots

Geometrized Chomsky Geometrized Surfer

Resources

Notes

  • This implementation is single-threaded, and performance varies by target platform. The first shapes usually take the longest to add, since larger shapes take longer to rasterize. Small target images are recommended - you probably do not need the detail anyway.
  • Got an idea or suggestion? Open an issue on GitHub, or send Sam a message on Twitter.
  • Geometrize Haxe is based on primitive, a Go library created by Michael Fogleman.
  • Geometrize Haxe is available as a haxelib.
  • This demo should work on all targets that HaxeFlixel supports.