Add cubic and quadratic bezier easing
Closed this issue · 1 comments
WebFreak001 commented
Using them could look like this:
alias MaterialDesignFastOutSlowIn = cubicBezier!(0.4, 0.0, 0.2, 1);
alias MaterialDesignLinearOutSlowIn = cubicBezier!(0.0, 0.0, 0.2, 1);
alias MaterialDesignFastOutLinearIn = cubicBezier!(0.4, 0.0, 1, 1);
auto output = input.map!MaterialDesignFastOutSlowIn(0, 1, 0, 1);
tanitta commented
Thanks your suggestion! Bezier easing were implemented. Control points are specified as run-time arguments instead of template arguments in order to adjust at run-time.