Registry / ai-ml / easing-functions

easing-functions

JSON →
library1.0.4pypypi✓ verified 81d ago

A collection of basic easing functions for Python, implementing Robert Penner's easing equations. Current version 1.0.4, with infrequent releases and no active maintenance.

pip install easing-functions
INSTALL
IMPORT
SIG · EASING-FUNCTIONS
E
easing-functions
ai-mlpythonv1.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

QuadEaseIn
from easing_functions import QuadEaseIn
from easing_functions import QuadEaseIn, QuadEaseOut, ...
QuadEaseOut
from easing_functions import QuadEaseOut
LinearInOut
from easing_functions import LinearInOut

Import an easing class (e.g., QuadEaseIn), instantiate with start, end, and duration, then call the instance with a time value (0 <= t <= duration) to get the eased value.

from easing_functions import QuadEaseIn ease = QuadEaseIn(start=0.0, end=1.0, duration=1.0) result = ease(0.5) print(result) # Output: 0.25
Debug
Known issues
gotchaThe instance is callable: ease_instance(t) returns the eased value at time t. t must be between 0 and duration, inclusive.
fix
Ensure t in [0, duration].
affects: all
gotchaAll easing classes require start, end, and duration parameters at instantiation.
fix
Instantiate as QuadEaseIn(start=0.0, end=10.0, duration=2.0).
affects: all
gotchaThe library provides no easing functions as plain functions; all are callable class instances.
fix
Use class instantiation and call the object.
affects: all
Upgrade
Version history
1.0.4latest on PyPI · released Jan 14, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
easing-functions — pip install easing-functions · libregistry