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