p5.tween
p5.tween copied to clipboard
Adding predefined animations
The bouncing ball tween could be a predefined tween. In that way the user could use the animation in one line, f.e.:
p5.tween.manager
.addPredefinedTween(object)
.bouncingUpDown(downInPixel, stretchFactor, speed)