https://github.com/tw1ddle/geometrize-haxe-web
:globe_with_meridians: Web demo using the Geometrize Haxe library to recreate images with geometric primitives
https://github.com/tw1ddle/geometrize-haxe-web
art geometric geometric-shapes geometrize geometry-processing haxe primitives shapes
Last synced: 6 months ago
JSON representation
:globe_with_meridians: Web demo using the Geometrize Haxe library to recreate images with geometric primitives
- Host: GitHub
- URL: https://github.com/tw1ddle/geometrize-haxe-web
- Owner: Tw1ddle
- License: mit
- Created: 2017-03-30T19:33:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-14T00:48:05.000Z (almost 4 years ago)
- Last Synced: 2024-07-29T18:44:12.646Z (about 1 year ago)
- Topics: art, geometric, geometric-shapes, geometrize, geometry-processing, haxe, primitives, shapes
- Language: JavaScript
- Homepage: https://www.geometrize.co.uk/
- Size: 8.23 MB
- Stars: 136
- Watchers: 6
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.geometrize.co.uk/)
[](https://github.com/Tw1ddle/geometrize-haxe-web/blob/master/LICENSE)
[](https://ci.appveyor.com/project/Tw1ddle/geometrize-haxe-web)Web demo for [Geometrize](https://www.geometrize.co.uk/), a tool for recreating images as geometric primitives. Run it now [in your browser](https://www.samcodes.co.uk/project/geometrize-haxe-web/).
Made using the [Geometrize Haxe](https://github.com/Tw1ddle/geometrize-haxe) library, a [Haxe](https://haxe.org/) port of [primitive](https://github.com/fogleman/primitive).
[](https://www.geometrize.co.uk/)
## Features
* Recreate images as geometric primitives - rectangles, triangles, circles, ellipses and lines are supported.
* Interactive options for adjusting shape types, shape and background opacity, speed and accuracy.
* Save geometrized images as raster PNGs, vector SVGs or as JSON data.
* Watch the geometrized images being generated in realtime.## Shape Comparison
The matrix shows results for circles, triangles, rotated rectangles, rotated ellipses and all supported shapes at 50, 200 and 500 total shapes:
| - | 50 Shapes | 200 Shapes | 500 Shapes |
| ------------------ | ------------- | ------------- | ------------ |
| Circles | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) |
| Triangles | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) |
| Rotated Rectangles | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) |
| Rotated Ellipses | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) |
| All Shapes | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) |## Usage
* Open up the [demo](https://www.samcodes.co.uk/project/geometrize-haxe-web/) and watch the default geometrized seagull gradually take form.
* Pick your own image via "Open Image", and click on the "Settings" button to reveal various different shape and iteration settings.
* Once you are happy with the results, hit one of the "Save" buttons to save a copy of the geometrized image.## Examples And Screenshots
Geometrized public domain [artwork](https://commons.wikimedia.org/wiki/Category:Paintings_by_painter) and [photos](https://www.pexels.com/public-domain-images/):
[](https://www.geometrize.co.uk/)
[](https://www.geometrize.co.uk/)
[](https://www.geometrize.co.uk/)
[](https://www.geometrize.co.uk/)
[](https://www.geometrize.co.uk/)
[](https://www.geometrize.co.uk/)
[](https://www.geometrize.co.uk/)
[](https://www.geometrize.co.uk/)For more examples, see the Geometrize [gallery](https://gallery.geometrize.co.uk/).
## Notes
* Got an idea or suggestion? Open an issue on GitHub, or send Sam a message on [Twitter](https://twitter.com/Sam_Twidale).
* The Geometrize Haxe library is available as a [haxelib](https://lib.haxe.org/p/geometrize-haxe).
* Find more code related to Geometrize [here](https://resources.geometrize.co.uk/).