Hacker News new | past | comments | ask | show | jobs | submit login

The astral renderer released as open source on https://github.com/InVisionApp/astral-renderer does all sorts of path morphing.

It is a C++ library, builds for native (MacOS, Linux and MS-Windows via msys2/ming2 and WebAssembly). It also included a some-what user hostile demo to allow one to make their own animated paths (and save them and load them).

As an example try running

./create_animated_path-release load demo_data/animated_path/example_insane.bin

after you build it for release.

If you download the SVG-Tiger (say from https://upload.wikimedia.org/wikipedia/commons/f/fd/Ghostscr...) you can see it animate an SVG to its reflection too:

./svg-release file ./Ghostscript_Tiger.svg reflect_direction_x 1 reflect_direction_y 1

The library is not really worked on at all since I (the author) left InvisionApp quite some time ago; that and InvisionApp announced that they are shutting down by the end of 2024.

Because it targeted WebGL2 (which is jut GLES 3.0) it could not use compute so some portions of how path filling are handled become CPU bound instead of GPU bound once the GPU is too powerful; a Mac-Mini with an M1 was generally the sweet spot.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: