Skip to main content

An ASCII art and text cinematic storyboard/demo library

Project description

Asciimatics is a package to help people create simple ASCII animations using curses. It is licensed under the Apache Software Foundation License 2.0.

It originated from some work that I did on PiConga to create a retro text credits roll for the project. This worked so well, I re-used it for another project. At that point I felt it might be fun to share with others.

Why?

Why not? It brings a little joy to anyone who was programming in the 80s…

Installation

To install asciimatics, simply:

$ pip install asciimatics

How to use it?

Create a curses window, create a Screen, put together a Scene using some Effects and then get the Screen to play it.

import curses
from asciimatics.effects import Cycle, Stars
from asciimatics.renderers import FigletText
from asciimatics.scene import Scene
from asciimatics.screen import Screen

def demo(win):
    screen = Screen.from_curses(win)
    effects = [
        Cycle(
            screen,
            FigletText("ASCIIMATICS", font='big'),
            screen.height / 2 - 8),
        Cycle(
            screen,
            FigletText("ROCKS!", font='big'),
            screen.height / 2 + 3),
        Stars(screen, 200)
    ]
    screen.play([Scene(effects, 500)])

curses.wrapper(demo)

And you should see something like this:

asciicast

Documentation

Documentation is available at http://asciimatics.readthedocs.org/en/latest/

More Examples

More examples of what you can do are available in the project samples directory, hosted on GitHub. See https://github.com/peterbrittain/asciimatics/tree/master/samples.

Alternatively, you can browse the gallery at https://github.com/peterbrittain/asciimatics/wiki.

Bugs

You can report bugs at https://github.com/peterbrittain/asciimatics/issues

Contributing to the project

If you’d like to take part in this project (and see your name in the credits!), check out the guidance at http://asciimatics.readthedocs.org/en/latest/intro.html#contributing-to-this-project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asciimatics-1.1.0.tar.gz (20.0 kB view details)

Uploaded Source

File details

Details for the file asciimatics-1.1.0.tar.gz.

File metadata

  • Download URL: asciimatics-1.1.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for asciimatics-1.1.0.tar.gz
Algorithm Hash digest
SHA256 049c4e10022133697ff5e45e4c21a8ec7acc1476b5dd45443aeb75f393c027ec
MD5 9d5846958a1e38a76c6e917e4b9d7e44
BLAKE2b-256 eac12bee5d05aaadb6d3ba120e1d618871e2713405bc73cc20280bebcb72c5e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page