https://github.com/tw1ddle/geometrize-tween-optimizer
A tool for creating visually appealing tweens between sets of geometric primitives
https://github.com/tw1ddle/geometrize-tween-optimizer
art geometrize haxe shapes
Last synced: about 2 months ago
JSON representation
A tool for creating visually appealing tweens between sets of geometric primitives
- Host: GitHub
- URL: https://github.com/tw1ddle/geometrize-tween-optimizer
- Owner: Tw1ddle
- License: mit
- Created: 2017-12-12T19:24:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-08T14:57:15.000Z (over 3 years ago)
- Last Synced: 2025-01-12T07:46:37.939Z (3 months ago)
- Topics: art, geometrize, haxe, shapes
- Language: Haxe
- Homepage: https://www.geometrize.co.uk/
- Size: 8.79 MB
- Stars: 9
- Watchers: 3
- Forks: 2
- 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-tween-optimizer/blob/master/LICENSE)
[](https://ci.appveyor.com/project/Tw1ddle/geometrize-tween-optimizer)A utility for creating appealing tweening animations between sets of shapes. Run it now [in your browser](https://tweenoptimizer.geometrize.co.uk/).
Made for use with shapes exported from [Geometrize](https://www.geometrize.co.uk/), a tool for recreating images using geometric primitives.
[](https://www.geometrize.co.uk/)
# Features
* Create visually appealing transitions between collections of shapes.
* Edit the core algorithm interactively via on-page script textedits.
* Save mappings between sets of shape data for use elsewhere.
* View the shapes tweening in realtime.# Usage
* Open up the [demo](https://tweenoptimizer.geometrize.co.uk/) and inspect the sample shape data and optimization code.
* Use different shape data by pasting Geometrize shape data JSON into the "Dataset" text areas.
* Edit the optimization code via the "cost function" and "optimization function" text areas.
If you extend this code, remember that you must disable dead code elimination (''-dce no'' in the build .hxml), or else mark things you expose to the scripting engine with the ''@:keep'' annotation.Also remember that you can't expose abstracts to hscript. One workaround is to write a wrapper for your abstract that exposes the functions you need to hscript.
# Notes
* Created by [Sam Twidale](https://github.com/Tw1ddle) and [Joe Williamson](https://github.com/JoeCreates/).
* Written using [Haxe](https://github.com/HaxeFoundation/haxe), [hscript](https://github.com/HaxeFoundation/hscript), [cloner](https://github.com/thomasuster/cloner) and utilities from [HaxeFlixel](https://github.com/HaxeFlixel/flixel).