Skip to main content

Animator is a terminal based animation library for python.

Project description

Animator

Animator is a terminal based animation library for python.

Installation

  • Using the package manager pip to install Animator.
pip install animator
  • Or you can install using the zip file. Go to the directory where you extracted the zip and run
python setup.py install

Usage

import Animator as anim

anim.expand() # makes a expanding animation
anim.contract() # makes a contracting animation
  1. expand(width, height, color="\033[0m", print_char="#", time_p_f=0.1)
  • width is the width of the console which you can give as os.get_terminal_size().columns
  • height is the height of the console which you can give as os.get_terminal_size().lines
  • color is the ansi code for color of the animation. It deafaults to "\033[0m".
  • print_char is the character which will be used to make the animation. It deafauts to "#".
  • time_p_f is the time in seconds between every frame. It deafaults to 0.1.
  1. contract(width, height, color="\033[0m", print_char="#", time_p_f=0.1)
  • width is the width of the console which you can give as os.get_terminal_size().columns
  • height is the height of the console which you can give as os.get_terminal_size().lines
  • color is the ansi code for color of the animation. It deafaults to "\033[0m".
  • print_char is the character which will be used to make the animation. It deafauts to "#".
  • time_p_f is the time in seconds between every frame. It deafaults to 0.1.

Platform

Animator is OS Independent.

Sample

Samples can be found here.

Contributing

Animator is open to contribution. You can contribute here.

Maintainers

  • (Tanish Yadav)[https://github.com/tanishyadav/]

Issues

If you find a bug or issue, you can raise an issue here.

License

GNU GPLv3

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

animator-0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

animator-0.1-py3-none-any.whl (14.9 kB view hashes)

Uploaded Python 3

Supported by

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