FIG-001/ EFFECT

plain object, full Motion physics.

A custom effect claims a plain dial object and writes its animated values before a canvas render loop draws each frame.

  • createEffect teaches Motion how to read and write the dial.
  • The same animate() call applies spring physics to a plain object.
  • frame.preRender writes values before the canvas draws.
↩ all examples
api · createEffectinput · animate.addEffectmode · live mode · live running source
// custom-effect angle 45°
plain object → createEffect → canvas frame.preRender
category · effect
sheet · sheet 01 / 01
⟳ to re-run

Custom Effects