GithubHelp home page GithubHelp logo

asciimation's Introduction

Asciimation

An ASCII animation interpreter for the terminal.

asciimation plane example

Asciimation is like the flipbooks where one draws a single frame per page, and flips through it to create an animation.

asciimation simple example

The above asciimation is created from the following file contents:

x:10        # minimum terminal width
y:1         # minimum terminal height
BEGIN       # keyword to seperate headers from frames
octobanana  # the first frame
END         # keyword to seperate frames
OCTOBANANA  # the second frame

The interpreter reads from a plain text file. The start of the file contains the headers. The 'x' header is the minimum width of the terminal needed to properly display the animation, and 'y' is the height. The headers are optional, but the BEGIN line must be present. BEGIN tells the interpreter where to begin parsing the frames. Each frame is seperated by a newline with a special delimiter on it. The default delimiter is the word END.

While the above example uses a single line per frame, a frame is interpreted as anything inbetween the seperators.

See the examples folder for some ideas!

Build

Environment:

  • tested on linux
  • c++ 14 compiler
  • cmake

Libraries:

  • my parg library, for parsing cli args, included as ./src/parg.hh

The following shell commands will build the project:

git clone <repo_name>
cd <repo_name>
./build.sh -r

To build the debug version, run the build script without the -r flag.

Install

The following shell commands will install the project:

./install.sh -r

Future Features

  • layering multiple frames as one
  • keyword for coloring frames
  • keyword for modulating the delay between frames

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.