One of the principles of animation is "slow in, slow out". I would use one of 2 different functions in processing to do this. Top row is using a cosine function. Bottom row is using bezierPoint()
https://processing.org/reference/bezierPoint_.html
but one bug I've frequently committed with that function is letting the t parameter rise above 1. Cosine doesn't have that problem.
