Skip to content

dayitv89/PyColorAsciiAnimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyColorAsciiAnimation

Terminal Color ASCII Animation Program (Python2.7)

Video

Awesome library available by asciimatics and dummy code

[![rainbow-colored text among ascii noise][1]][2] [1]: https://asciinema.org/a/06sabwtc1bw5wfiq23a71ccxq.png [2]: https://asciinema.org/a/06sabwtc1bw5wfiq23a71ccxq?autoplay=1

Dependency

asciimatics (Python2.7)

$ sudo pip install asciimatics

Code

$ python animation_GDS.py

#!/usr/bin/env python
from asciimatics.effects import RandomNoise  # $ pip install asciimatics
from asciimatics.renderers import SpeechBubble, Rainbow
from asciimatics.scene import Scene
from asciimatics.screen import Screen
from asciimatics.exceptions import ResizeScreenError


def demo(screen):
    render = Rainbow(screen, SpeechBubble('Gaurav D. Sharma'))
    effects = [RandomNoise(screen, signal=render)]
    screen.play([Scene(effects, -1)], stop_on_resize=True)

while True:
    try:
        Screen.wrapper(demo)
        break
    except ResizeScreenError:
        pass

Happy coding, Voila!

About

Terminal Color ASCII Animation Program

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages