Add "linear" function
gpulido opened this issue · comments
Gabriel Pulido commented
Hello,
Thanks for the library it is very helpfull.
I would like to incorporate a "linear function" just for the cases where a linear animation is needed. It as simple as:
class LinearInOut(EasingBase):
def func(self, t):
return t
I tried to just extend it on my code but the EasingBase class is not exposed.
So would you mind either adding the linear funct, either adding the easingbase to the exported classes so it can be extended?
I can make a pr for you if you prefer it.
Thank you in advance!!
Gabriel
Filippos Christianos commented
Hi @gpulido,
I did add it as "LinearInOut" and bumped the version so that you can upgrade via pip.
Best,
Filippos