Last active
July 8, 2019 16:05
-
-
Save CybernetiX-S3C/41b3785c29c5aa4649595df357d4a021 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from asciimatics.renderers import FigletText, Fire | |
from asciimatics.scene import Scene | |
from asciimatics.screen import Screen | |
from asciimatics.effects import Print | |
from asciimatics.exceptions import ResizeScreenError | |
from pyfiglet import Figlet | |
import sys | |
import time | |
def flames(screen): | |
scenes = [] | |
effects = [ | |
Print(screen, | |
Fire(screen.height, 80, "*" * 70, 0.8, 60, screen.colours, | |
bg=screen.colours >= 256), | |
0, | |
speed=1, | |
transparent=False), | |
Print(screen, | |
FigletText("JPM", "banner3"), | |
(screen.height - 4) // 2, | |
colour=Screen.COLOUR_BLACK, | |
speed=1) | |
] | |
scenes.append(Scene(effects)) | |
screen.play(scenes, stop_on_resize=True, repeat=False) | |
Screen.wrapper(flames) | |
sys.exit(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment