Skip to content

Commit 3f7e02d

Browse files
DigiDuncanpushfoo
andauthored
Easing Into It: The anim module (#2799)
* new anim folder, new easings * deprecate easing.py by deleting it it doesn't look like it's used anywhere internally * explain constants * remove obsolete examples * Get doc building * minor improvements * just define the methods on the class * Fix sphinx conf to render docstrings * Fix inclusion of items in doc * Fix doc build after adding to the quickindex file. * Convert EasingFunction into a typing.Protocol so it gets picked up by doc build + explain why * Correct Sphinx style issues and broken cross-references * Explain how of pyglet.math Matrix types won't work with easing (matmul) * Add an __all__ to arcade.anim.easing * ./make.py format * Remove unused typing.Callable import * Another ruff formatter run * Rename perc to norm as discussed * Rename `Animatable` to `Interpolatable`, as per @pushfoo --------- Co-authored-by: pushfoo <[email protected]>
1 parent f3de4d9 commit 3f7e02d

File tree

10 files changed

+428
-707
lines changed

10 files changed

+428
-707
lines changed

arcade/anim/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from arcade.anim.easing import ease, Easing, lerp, norm
2+
3+
__all__ = ["ease", "Easing", "lerp", "norm"]

0 commit comments

Comments
 (0)