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

clean up some comments

parent 7cae7a6e
......@@ -8,6 +8,10 @@ class Thing:
def console_print(self):
"""Prints the pixel matrix in this object to the console.
The RGB values are just added together.
"""
for line in self.matrix:
for item in line:
print("{0:3d}".format(sum(item)), end='')
......@@ -15,7 +19,7 @@ class Thing:
def snake_tuple(self):
"""Returns a tuple, where where the pixels in every 2nd line are in reverse order.
"""Returns a tuple, where the pixels in every 2nd line are in reverse order.
"""
......@@ -23,9 +27,9 @@ class Thing:
def snakify(self):
"""Returns the snakified strip
"""Returns the snakified pixel matrix.
Expects a 2dim array of tuples!!1
The order of RGB values is reversed in every second line.
"""
result = []
......@@ -68,6 +72,7 @@ def from_heart(color = PINK):
"""
return Thing(heart_tuple(color))
def from_eck(color = PINK):
"""
Creates a Thing object that contains an eck
......
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