-
Notifications
You must be signed in to change notification settings - Fork 12
/
playlist-keller.py
31 lines (28 loc) · 1.35 KB
/
playlist-keller.py
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
import dircache
import random
def ddc_chooser():
alle = dircache.listdir('animations/ddc')
ddc_list = []
for i in alle:
if i[0:3] == 'ddc' and i[-1] == 'y':
ddc_list.append('ddc/'+i)
return random.choice(ddc_list)
def getPlaylist():
playlist = [
#[time_in_seconds, [[simultanious_animation1, argument1, ...], [simultanious_animation2, argument1, ...], ...]]
[120, [["python","animations/screw.py","--wall=0"], ["python","animations/rainbowscroll.py","--wall=1"]]],
[120, [["python","animations/screw.py","--wall=0"]]],
[120, [["python","animations/rainbowscroll.py","--wall=0"]]],
[120, [["python","animations/multiwall_rainbowscroll.py"]]],
[120, [["python","animations/s-color4-faster.py"]]],
[120, [["python","animations/gameoflife.py"]]],
[120, [["python","animations/dmm/hackerbrucke.py"]]],
[120, [["python","animations/red-sym-scroll.py"]]],
[120, [["python","animations/multiwall_fullpulse.py"]]],
[120, [["python","animations/dropping.py"]]],
[120, [["python","animations/dmm/hackerbrucke.py"]]],
[120, [["python","animations/dmm/dt.py"]]],
[120, [["python","animations/dmm/uhrzeit.py"]]],
[120, [["python","animations/multiwall_warp_core.py"]]],
]
return playlist