1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

めざせpythonライブラリマスター (41)asciimatics

Posted at

#【ライブラリ説明】
 ASCIIアニメーション作成

#【プログラム】

asciimatics.py
# -*- coding: utf-8 -*-

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("From", font='big'),
            int(screen.height / 2 - 8)),
        Cycle(
            screen,
            FigletText("Q i i t a", font='big'),
            int(screen.height / 2 + 3)),
        Stars(screen, 200)
    ]
    screen.play([Scene(effects, 500)])

Screen.wrapper(demo)

#【結果】

pic.twitter.com/GIH0bUCRpt

— nobu (@AlgebraNobu) 2016年6月5日

#【参考サイト】
 pypi
 github

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?