MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / ease_out_bounce

Function ease_out_bounce

tools/easing.py:51–64  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

49
50
51def ease_out_bounce(x):
52 n1 = 7.5625
53 d1 = 2.75
54 if x < 1 / d1:
55 return n1 * x * x
56 elif x < 2 / d1:
57 x -= 1.5 / d1
58 return n1 * x * x + 0.75
59 elif x < 2.5 / d1:
60 x -= 2.25 / d1
61 return n1 * x * x + 0.9375
62 else:
63 x -= 2.625 / d1
64 return n1 * x * x + 0.984375
65
66
67def ease_out_elastic(x):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected