go build ./...
./asciimator <animation file>
- Animation files are just text files
- the first line contains two numbers separated by a space:
- number of lines per frame
- number of milliseconds to show each frame
- The rest of the file is ASCII art.
- Each frame is same number of lines
- Frames are played in order found in the file
HAVE FUN!
/|
||
||
/====~/\
/ 0 0 /=~~
/ =~~
|[. .]/ ~~~~====== ~
\ ~~
{0O0} / / /-----/ /~~~
(0) || \ \ [ ] ~
\ | / [= =] | /
---Vv---vv---VvvV\|/vvv---------------------------------------------------
-
asciimator
works withlolcat
, but results vary. May cause seisures.asciimator ./unicorn.txt | lolcat
-
For better color control, add ANSI escaped color codes. I find it easier to animate my frames first, and then add color instructions, as it will throw off you spacing, You can find tables of color codes on Wikipedia. To escape ANSI color codes, use the following pattern: z
\x1b[
<ANSI-CODE>m
or
\033[
<ANSI-CODE>m
Remember to use the ANSI code
0
to turn off color.