24 lines
528 B
Python
24 lines
528 B
Python
from asciimatics.screen import Screen
|
|
from asciimatics.scene import Scene
|
|
from asciimatics.effects import Cycle, Stars
|
|
from asciimatics.renderers import FigletText
|
|
|
|
|
|
def demo(screen):
|
|
effects = [
|
|
Cycle(
|
|
screen,
|
|
FigletText("Asciimatics", font="big"),
|
|
screen.height // 2 - 8,
|
|
),
|
|
Cycle(
|
|
screen,
|
|
FigletText("ROCKS", font="big"),
|
|
screen.height // 2 + 3,
|
|
),
|
|
]
|
|
screen.play([Scene(effects, 500)])
|
|
|
|
|
|
Screen.wrapper(demo)
|