Skip to content

Instantly share code, notes, and snippets.

@CybernetiX-S3C
Last active July 8, 2019 16:05
Show Gist options
  • Save CybernetiX-S3C/41b3785c29c5aa4649595df357d4a021 to your computer and use it in GitHub Desktop.
Save CybernetiX-S3C/41b3785c29c5aa4649595df357d4a021 to your computer and use it in GitHub Desktop.
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