Hello @frederik ! Thank you! it works for me
May I add those few lines found on this other tutorial about "EaseInOut" function.
def easeInOut(factor):
assert 0 <= factor <= 1
return (1 - cos(factor * pi)) / 2
It will add a new graph with easeInOut. It is working well with your previous lines. Thank you for your help ! Be safe.