Skip to content

Instantly share code, notes, and snippets.

Created Jun 26, 2014
What would you like to do?
float x;
float easing = 0.05;
float targetX = origin;
float dx = targetX - x;
if(abs(dx) > 1) {
x += dx * easing;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment