cf_quint_in_out¶
Category: math
GitHub: cute_math.h
Returns the quintic ease of a float from 0.0f to 1.0f.
float cf_quint_in_out(float x) { if (x < 0.5f) return 16.0f * x * x * x * x * x; else { float f = ((2.0f * x) - 2.0f); return 0.5f * f * f * f * f * f + 1.0f; } }
Remarks¶
Here is a great link to visualize each easing function.