ascii-animation
A tool that displays ascii animation
Last updated 5 years ago by joeyism .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ascii-animation 
SYNC missed versions from official npm registry.

Ascii Animation

A library that animates ASCII characters

Install

To install, run

> npm install --save ascii-animation

Then require it as

var animation = require('ascii-animation');

Methods

animate

The main method that animates. To use, run the code as

animation.animate([array with each frame],
                  [will loop this condition until it is false],
                  [callback])

secondsPerFrame

Sets the seconds to wait between each frame

animation.secondsPerFrame(0.5);

usecondsPerFrame

Sets the microseconds to wait between frame

animation.usecondsPerFrame(100000);

updateCondition

Updates the condition

animation.updateCondition(false);

Example

For an example, please see dancing bear

Version

1.0.4

  • Fixed sleep dependency

1.0.3

  • Fixed require colors bug

1.0.2

  • Fixed bug that didn't allow on windows

1.0.0

  • First release

Current Tags

  • 1.0.4                                ...           latest (5 years ago)

5 Versions

  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |