https://processing.org/examples/easing.html
So I'm using this animation math for something, however if I run it on a computer that can get around 100FPS compared to one that gets 30FPS. The animation can either be a lot quicker or slower. I tried to mess around with the frame time but I'm still not sure how to do it, I'm not getting anything consistent.
float targetX = mouseX;
float dx = targetX - x;
x += dx * easing;
Is the frametime the right thing to be using? Any snippets of code on how I could approach this would be greatly appreciated, thanks