Works off of linear interpolation(lerp). Drag the black circles to manipulate the curve. Press Space to make the points move randomly. Read the comment in the code by pressing see inside and go into the drawer sprite.
Made by XxhackerlolxX