A vector-based motion graphics animation tool that enables rapid development with an intuitive user interface. (formerly Micro Graph)
A rudimentary build of the web application is available for testing.
It is free and open-source, meant to enable creators with easy access to a powerful tool directly in their web browser.
Building a web-based vector animation application, with custom drawing functionality using the HTML Canvas API. Managing data using MobX and an object-like-oriented design, with a React front end.
Science, or more specifically mathematics, is at the core of every vector shape and every frame of animation, making it very relevant in the architecture of MicroGraph. What I'd like to highlight is how a Bézier curve, which is often used to represent the vector between two points in 2d space, is also an incredible tool in producing smooth and realistic animations in the 4th dimension, time.
The math that makes it possible to define a curve with 4 points is pretty ingenious, but it's only one of the infinite types of Bézier curves (cubic). You can dive deeper into this topic and play with them visually on this website.
Unfortunately, the general formula defines the curve as a function of how far along the curve you have traveled, which is very different than a traditional
Therefore, to use the beautiful shape of a Bézier curve to define the interpolation between two keyframes, we have to solve the curve so that it can be defined in an
y relationship, or in this case
As you might have read in the code section of this project, I've opted for relative values in every way possible. This holds with keyframe interpolation. With both
value now normalized on a scale of
1, we can say that
P3 (the first and last points), will always fall at
This gives us the power to greatly reduce the complexity in the function, which saves computation time, and eliminates the possibility of imaginary roots existing for a curve. It puts the emphasis, both mathematically and user experience wise, on the handles of the curve -- which are ultimately what define the smoothness and realisticness of an animation.
Here is an incredibly simple animation made with the current version of MicroGraph. It includes the two shapes and the three properties that can be animated at the time of writing.