Skip to content

Commit

Permalink
Update 0.10.2
Browse files Browse the repository at this point in the history
Fix: 修复了bounce系的缓动函数
  • Loading branch information
feightwywx committed Sep 26, 2023
1 parent 5ee44d2 commit 9103a2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="arcfutil",
version="0.10.1",
version="0.10.2",
author=".direwolf",
author_email="[email protected]",
description="A Python module designed for processing Arcaea related files(.aff chart, songlist, etc.)",
Expand Down
12 changes: 6 additions & 6 deletions src/arcfutil/aff/easing/cheatsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ def ease_out_bounce(x: float) -> float:
n1 = 7.5625
d1 = 2.75

if x < 1 / d1:
if x < (1 / d1):
return n1 * x * x
elif x < 2 / d1:
return n1 * ((x - 1.5) / d1) * x + 0.75
elif x < 2.5 / d1:
return n1 * ((x - 2.25) / d1) * x + 0.9375
elif x < (2 / d1):
return n1 * (x - 1.5 / d1) ** 2 + 0.75
elif x < (2.5 / d1):
return n1 * (x - 2.25 / d1) ** 2 + 0.9375
else:
return n1 * ((x - 2.625) / d1) * x + 0.984375
return n1 * (x - 2.625 / d1) ** 2 + 0.984375


def ease_in_out_bounce(x: float) -> float:
Expand Down

0 comments on commit 9103a2c

Please sign in to comment.