Skip to content

Commit

Permalink
Fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lordmauve committed Jan 19, 2025
1 parent f565279 commit 7767800
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pgzero/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,22 @@ def in_out_elastic(n):
def out_sine(n):
return sin(n * pi/2)


@tweener
def in_sine(n):
return 1 - cos(n * pi/2)


@tweener
def in_out_sine(n):
return -(cos(pi * n) - 1)/2


@tweener
def out_expo(n):
return 1 if n == 1 else 1 - pow(2, -10 * n)


def _out_bounce_internal(t, d):
p = t / d
if p < (1.0 / 2.75):
Expand Down

0 comments on commit 7767800

Please sign in to comment.