lv_cubic_bezier() function
@endcond Calculate the y value of cubic-bezier(x1, y1, x2, y2) function as specified x.
Syntax
int32_t lv_cubic_bezier(int32_t x,
int32_t x1,
int32_t y1,
int32_t x2,
int32_t y2);
Arguments
x
time in range of [0..LV_BEZIER_VAL_MAX]
x1
x of control point 1 in range of [0..LV_BEZIER_VAL_MAX]
y1
y of control point 1 in range of [0..LV_BEZIER_VAL_MAX]
x2
x of control point 2 in range of [0..LV_BEZIER_VAL_MAX]
y2
y of control point 2 in range of [0..LV_BEZIER_VAL_MAX]
Return value
the value calculated