Skip to main content

Customizable Optimized Easing Functions for Python

Project description

Easings

Description

Customizable Optimized Easing Functions for Python.

Installation

pip install easings

Usage

Ease values between 0 and 1:

import easings

progress = easings.back_in_out(
    progress = 0.5,
    bounce_const = easings.both_back_consts[0.1]
)

print(progress)

Easing values with a start and end value using an Easer

import easings

easer = easings.Easer(4, 12)

value = easer.value(easings.poly_in_out, 0.5, 2)

print(value)

License

CC0 1.0 Universal (CC0 1.0) Public Domain Dedication.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easings-2.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easings-2.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file easings-2.0.0.tar.gz.

File metadata

  • Download URL: easings-2.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for easings-2.0.0.tar.gz
Algorithm Hash digest
SHA256 75c476b62b5d1545dcd7880716b820fdd7591a16c7a96eb83d16add70e759724
MD5 7165b59e2683f0cdb1cb17a63bfe9fc8
BLAKE2b-256 eb4fe13df4b91218164eacd4bbbc8a0da9d238d98a3214691227fb4147479da0

See more details on using hashes here.

File details

Details for the file easings-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: easings-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for easings-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 044e38bb1e4365d085ad2d5e10f5f032a7463b480a3f8c60f5bea9c3517ed944
MD5 e544468da0aae02958fdd3aebbf5b5a5
BLAKE2b-256 aa285caed8dbd72cfbcfb448e7da7610ba2c045133a33677cc5ac2af8f66f635

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page