Skip to main content

A package for animating values with easing functions

Project description

pyeaze

pyeaze is a Python package for animating values with easing functions. It supports float, int, and hex color values (specified as strings), and can animate multiple values at the same time.

Installation

Use the package manager pip to install pyeaze.

pip install pyeaze

Usage

Animating single value,

import pyeaze

anim = Animator(current_value=0, target_value=100, duration=1, fps=60, easing='ease', reverse=False)

for value in anim:
    print(value)

Animating multiple values,

anim.add_animator(current_value='#e01a6d', target_value='#ffffff', easing='ease')
anim.add_animator(current_value='#006effff', target_value='#ffffff00', easing='ease')

for value, color1, color2 in anim:
    print(value, color1, color2)

More information

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

pyeaze-0.8.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

pyeaze-0.8.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file pyeaze-0.8.1.tar.gz.

File metadata

  • Download URL: pyeaze-0.8.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.3

File hashes

Hashes for pyeaze-0.8.1.tar.gz
Algorithm Hash digest
SHA256 18b0c5f865cf7aaedb5a660b89d3198540e76d1d05a1e16e10d4e49d98b15f91
MD5 35d0c262d6d1837463e5ad9122782fc8
BLAKE2b-256 a96567e97851a1473f372c7f9fe67990710fa8285b8333fdabba827f182b68d8

See more details on using hashes here.

File details

Details for the file pyeaze-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: pyeaze-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.3

File hashes

Hashes for pyeaze-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d78e25ee249bc98fd9a8f56f5b3eaa5199203ad7a921519ea54d849b1ae5bac2
MD5 f8a06e8cda253aead3420dbc20084c2b
BLAKE2b-256 77da65564a5b2428200de3a251d9d8444059d0646dfa3854745217fe80e763b4

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