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

Function ease_out_elastic

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

Source from the content-addressed store, hash-verified

65
66
67def ease_out_elastic(x):
68 if x == 0:
69 return 0
70 elif x == 1:
71 return 1
72 else:
73 c4 = (2 * math.pi) / 3
74 return pow(2, -10 * x) * math.sin((x * 10 - 0.75) * c4) + 1
75
76
77def get_tracks(distance, seconds, ease_func) -> Tuple[List[int], List[int]]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected