Skip to content

Commit

Permalink
New: Party and Police Doppelblitz
Browse files Browse the repository at this point in the history
  • Loading branch information
pc-coholic committed Jun 18, 2014
1 parent 4d779da commit a9214de
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
24 changes: 24 additions & 0 deletions animations/doppelblitz.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import acabsl
import time

acabsl.update()

def set_all(r,g,b):
for w in range(acabsl.NOOFWALLS):
for x in range(acabsl.WALLSIZEX):
for y in range(acabsl.WALLSIZEY):
acabsl.send(x,y,r,g,b,0,w)
acabsl.update()

while 1:
set_all(0,0,255)
time.sleep(4/144.)
set_all(0,0,0)
time.sleep(12/144.)
set_all(0,0,255)
time.sleep(4/144.)
set_all(0,0,0)
time.sleep(100/144.)
30 changes: 30 additions & 0 deletions animations/party.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import acabsl
import acabsl2
import time
import random
t = 0.1

acabsl.update()
acabsl2.update()

def set_all(r,g,b):
for w in range(acabsl.NOOFWALLS):
for x in range(acabsl.WALLSIZEX):
for y in range(acabsl.WALLSIZEY):
acabsl.send(x,y,r,g,b,0,w)
acabsl2.send(x,y,r,g,b,0,w)
acabsl.update()
acabsl2.update()

while 1:
r = random.randrange(0, 255, 1)
g = random.randrange(0, 255, 1)
b = random.randrange(0, 255, 1)
set_all(r,g,b)
time.sleep(t)



0 comments on commit a9214de

Please sign in to comment.