summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-03-17 18:43:42 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-03-17 18:43:42 +0100
commit092f52f813dbec9269e0b35bd984209afaf1a8d5 (patch)
tree91494d671b99a861d7562b2315666cee488bbb21
parente73906de2627bac605d4894da1d19dfe50042b84 (diff)
blinkenrocket.py: add some more example animations
-rw-r--r--utilities/blinkenrocket.py82
1 files changed, 79 insertions, 3 deletions
diff --git a/utilities/blinkenrocket.py b/utilities/blinkenrocket.py
index dd229b9..c3d277c 100644
--- a/utilities/blinkenrocket.py
+++ b/utilities/blinkenrocket.py
@@ -227,9 +227,85 @@ if __name__ == '__main__':
for message in sys.argv[2:]:
b.addFrame(textFrame(message, speed=2))
b.addFrame(textFrame(" \x04 "))
- b.addFrame(animationFrame(map(lambda x : chr(x), [0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255])))
- #for i in xrange(10):
- # b.addFrame(textFrame(str(100*i)))
+ b.addFrame(animationFrame(map(lambda x : chr(x), [0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255]), speed=0))
+ b.addFrame(animationFrame(map(lambda x : chr(x), [
+ 1, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1,
+ 0, 0, 0, 0, 0, 0, 0, 2,
+ 0, 0, 0, 0, 0, 0, 0, 4,
+ 0, 0, 0, 0, 0, 0, 0, 8,
+ 0, 0, 0, 0, 0, 0, 0, 16,
+ 0, 0, 0, 0, 0, 0, 0, 32,
+ 0, 0, 0, 0, 0, 0, 0, 64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 0,
+ 0, 0, 0, 0, 0, 8, 0, 0,
+ 0, 0, 0, 0, 0, 16, 0, 0,
+ 0, 0, 0, 0, 0, 32, 0, 0,
+ 0, 0, 0, 0, 32, 0, 0, 0,
+ 0, 0, 0, 32, 0, 0, 0, 0,
+ 0, 0, 32, 0, 0, 0, 0, 0,
+ 0, 0, 16, 0, 0, 0, 0, 0,
+ 0, 0, 8, 0, 0, 0, 0, 0,
+ 0, 0, 0, 8, 0, 0, 0, 0,
+ 0, 0, 0, 0, 8, 0, 0, 0,
+ 0, 0, 0, 0, 16, 0, 0, 0,
+ 0, 0, 0, 16, 0, 0, 0, 0,
+ 0, 0, 0, 24, 24, 0, 0, 0,
+ 0, 0, 60, 36, 36, 60, 0, 0,
+ 0, 126, 66, 66, 66, 66, 126, 0,
+ 255, 129, 129, 129, 129, 129, 129, 255,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ ]), speed=15, delay=1))
+ b.addFrame(animationFrame(map(lambda x : chr(x), [
+ 0, 0, 0, 24, 24, 0, 0, 0,
+ 0, 0, 60, 36, 36, 60, 0, 0,
+ 0, 126, 66, 66, 66, 66, 126, 0,
+ 255, 129, 129, 129, 129, 129, 129, 255,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ ]), speed=14, delay=1))
m.setData(b.getMessage())
m.saveAudio(sys.argv[1])