easing-functions
A collection of Penner's easing functions for Python
The collection includes the following ease in/ease out and ease inout:
Quadratic (Quad), Cubic, Quartic, Quintic, Sine, Circular, Exponential, Elastic, Back, Bounce, Linear
To install :
pip install easing-functions
To use:
from easing_functions import *
# For a duration 10 you will get the relevant output from start to end
a = QuadEaseInOut(start=0, end = 3, duration = 10)
k = a.ease(4) # 4 is a number between 0 and the duration you specified
#k is the returned value from start to end (0 to 3)
k2 = a(4) # the ease object can also be called directly, like a function
# example plots:
import numpy as np
import matplotlib.pyplot as plt
a = BounceEaseInOut(start=3, end=1, duration=1)
b = BounceEaseIn(start=0, end=1)
c = BounceEaseOut(start=0, end=1)
x = np.arange(0, 1, 0.001)
y0 = list(map(a, x))
y1 = list(map(b, x))
y2 = list(map(c, x))
plt.plot(x,y0)
plt.plot(x,y1)
plt.plot(x,y2)
Some Examples:
Metadata
Release files for easing-functions 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| easing_functions-1.0.4.tar.gz | 3.0 kB | Without provenance | Details for easing_functions-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| easing_functions-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for easing_functions-1.0.4-py3-none-any.whl |
Total release size: 18.8 kB
Release files / easing_functions-1.0.4.tar.gz
| Download URL | easing_functions-1.0.4.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e18c7931d445b85f28c4d15ad0a9a47bb65d4e2eefc0db3840448fae25e3f9de
|
|
BLAKE2b-256 checksum How to use checksums |
5cab84e42f16746e70dae34d5c03eaae44ebf8fef8f84ab31ea484295779e32c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
|
Release files / easing_functions-1.0.4-py3-none-any.whl
| Download URL | easing_functions-1.0.4-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27f2ce64adecde3d2d90d503ad564fc944e8f20221ba2eacf96be37c28c7ae4b
|
|
BLAKE2b-256 checksum How to use checksums |
f69405bc9dae8c32cb2ad359828bf79c7af359eb5e3eeeb1a74f8b1760d0058a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
|
Security for easing-functions 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.