-
Notifications
You must be signed in to change notification settings - Fork 0
/
gibbon
executable file
·69 lines (65 loc) · 1.36 KB
/
gibbon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
function printToBuffers () {
case $(( ( ( $1 + animW ) % 20 ) / 5 )) in
3)
buf[0]=' o'
buf[1]=' \\'
buf[2]=' \\ _'
buf[3]=' \\ ( )'
buf[4]=' \\_|_'
buf[5]=' / \\'
buf[6]=' _/_ \\'
buf[7]=' / / \\'
buf[8]=' \\ \\ \\o'
buf[9]=' " "'
buf[10]=''
;;
2)
buf[0]=' o'
buf[1]=' |'
buf[2]=' |'
buf[3]=' |'
buf[4]=' ( )'
buf[5]=' _|_'
buf[6]=' \\|'
buf[7]=' |\\_'
buf[8]=' /| /'
buf[9]=' \\| \\'
buf[10]=' "|o"'
;;
1)
buf[0]=' 0'
buf[1]=' /'
buf[2]=' _ /'
buf[3]=' ( ) /'
buf[4]=' _|_/'
buf[5]=' / \\'
buf[6]=' / _\\_'
buf[7]=' / / /'
buf[8]=' /o \\ \\'
buf[9]=' " "'
buf[10]=''
;;
*)
buf[0]='o 0'
buf[1]=' \\ _ /'
buf[2]=' \\ ( ) /'
buf[3]=' \\_|_/'
buf[4]=' |'
buf[5]=' _|_'
buf[6]=' / /'
buf[7]=' \\ \\'
buf[8]=' " "'
buf[9]=''
buf[10]=''
;;
esac
}
. anim
function advanceRenderingPosition () {
let animX="${animX} - 5"
}
function waitBetweenFrames () {
sleep 0.1
}
animate