FIG-001/ TRANSITION

morph paths with different point counts.

A 10-point star morphs into a 4-point square. Motion can't blend their path data by default, so flubber's interpolate is the transition.mixer.

  • The mixer gets the start and end path and returns a function from progress to a path.
  • flubber's interpolate setup only runs when that function is first called.
  • Numbers never call the mixer, and a mixer that returns undefined blends as usual.
↩ all examples
api · transition.mixerinput · animate.dmode · live mode · live running source
// transition-mixer
star: 10 points square: 4 points
category · transition
sheet · sheet 01 / 01
⟳ to re-run

transition.mixer