asciimatics art using python
from asciimatics.effects import Cycle, Stars
from asciimatics.renderers import FigletText
from asciimatics.scene import Scene
from asciimatics.screen import Screen
def demo(screen):
effects = [
Cycle(
screen,
FigletText("APNI PROGRAM", font='small'),
int(screen.height / 5-9)),
Cycle(
screen,
FigletText("BY KRISH BHAGAT",font='small'),
int(screen.height / 1-10)),
Cycle(
screen,
FigletText("THANKS FOR", font='small'),
int(screen.height/3-7)),
Cycle(
screen,
FigletText("WATCHING", font='small'),
int(screen.height/2-9)),
Cycle(
screen,
FigletText("JAI - HINDI", font='small'),
int(screen.height/2+3)),
Stars(screen, 500)
]
screen.play([Scene(effects, 900)])
Comments
Post a Comment