aboutsummaryrefslogtreecommitdiff
path: root/layouts/ZigzagLayout.py
diff options
context:
space:
mode:
authorGravatar eugue <eug.sun@gmail.com>2011-02-12 20:09:41 -0500
committerGravatar eugue <eug.sun@gmail.com>2011-02-12 20:09:41 -0500
commit1e8b07e52c8b15b9bf4d9dc357f56bc8bbccc718 (patch)
treecb80c07023d8f4781d95e23f989976093f7c9d5d /layouts/ZigzagLayout.py
parent9e342041f05e88f8d1987a48fdcdc10c14ef095f (diff)
parenta239c7accdc634459d2db014b8d8b6d5b78bab1b (diff)
Merge branch 'master' of github.com:rcoh/SmootLight into behavior-factory
Diffstat (limited to 'layouts/ZigzagLayout.py')
-rw-r--r--layouts/ZigzagLayout.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/layouts/ZigzagLayout.py b/layouts/ZigzagLayout.py
index 3fc2ea1..665d14e 100644
--- a/layouts/ZigzagLayout.py
+++ b/layouts/ZigzagLayout.py
@@ -1,14 +1,5 @@
from operationscore.PixelAssembler import *
import pdb
-#Slightly more complex layout class that makes a zig-Zag Led Pattern
-#Inheriting classes must specify zigLength, the length in lights of a of a zig
-#and zig Axis, the direction of the long X axis (X or Y).
-#EG: zig length = 4, zig Axis = X would give:
-# X-X-X-X
-# |
-# X-X-X-X
-# |
-# X-X-X-X etc.
class ZigzagLayout(PixelAssembler):
"""ZigZagLayout is a slightly more complex layout class that makes a zig-Zag Led Pattern
Inheriting classes must specify zigLength, the length in lights of a of a zig
@@ -18,7 +9,7 @@ class ZigzagLayout(PixelAssembler):
|
X-X-X-X
|
- X-X-X-X etc.
+ X-X-X-X etc."""
def initLayout(self):
if not 'zigLength' in self.argDict:
raise Exception('zigLength must be defined in argDict')