Arcs
The goal of this example is to create a dynamic random animation of linked arcs.
A few techniques to note here are:
- Dynamic use of tuples to set up the initial conditions for drawing arcs
- Calculating a dynamic mid-point using the
lerp
function
- Ternary operators
let a = x ? y : z
to set the drawing characteristics of arcs
- Disabling / Enabling actions to temporarily suspend animations
- Completion observers to continuously trigger new animations
Example