Commit bc115be1 authored by Christian Wander's avatar Christian Wander
Browse files

progress

parent f3903512
......@@ -7,7 +7,9 @@ BLUE = (0, 0, 255)
class Thing:
def __init__(self, matrix=[], file=None, max_width=12, max_height=12):
"""
TODO: fix me: pass a string instead of a list
"""
self.max_width = max_width
self.max_height = max_height
......
......@@ -26,16 +26,24 @@ def main():
# pink = (128, 128, 0, 128)
# sender[universe].dmx_data = (200, 0, 200)
colors = (pink, lightblue, blue)
while True:
for c in colors:
## sender[universe].dmx_data = blink.eck(c)
# eck = blink.tuplify(blink.snakify(blink.eck_tuple(c)))
t = blink.heart_thing(c)
sender[universe].dmx_data = t.snake_tuple()
time.sleep(5)
# pic = blink.Thing(file = 'data/smile-heart-12x12.png')
pic = blink.Thing(file = 'data/darkside-12x12.png')
sender[universe].dmx_data = pic.snake_tuple()
time.sleep(5)
#colors = (pink, lightblue, blue)
# while True:
# for c in colors:
# ## sender[universe].dmx_data = blink.eck(c)
# # eck = blink.tuplify(blink.snakify(blink.eck_tuple(c)))
#
# t = blink.heart_thing(c)
# sender[universe].dmx_data = t.snake_tuple()
# time.sleep(5)
## stopping the sender?!
sender.stop()
......
......@@ -4,3 +4,6 @@ run tests:
python3 -m unittest -v test
```
## todo
* Deal with smaller images (e.g. 10x10 to 12x1 2)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment