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)])

Screen.wrapper(demo)

Comments

Popular posts from this blog

creating lord shiva 2 by turtle python apni programming

creating half face lord shiva by python turtle

navratri special turtle python apni programming