summaryrefslogtreecommitdiffstats
path: root/fish_show.py
diff options
context:
space:
mode:
Diffstat (limited to 'fish_show.py')
-rw-r--r--fish_show.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/fish_show.py b/fish_show.py
index 7cd8300..e4f24dd 100644
--- a/fish_show.py
+++ b/fish_show.py
@@ -147,7 +147,9 @@ class FishShow(Show):
self.lights = [Light(x, y, self.bridge.get_light(x, y))
for y in xrange(self.bridge.HEIGHT)
for x in xrange(self.bridge.WIDTH)]
- self.fish = Fish(0, 0.5, 23, 1.5, color.black, 1)
+ random_hue = random.random()
+ fish_color = color.HSV(random_hue, 1, 20/100).to_RGB()
+ self.fish = Fish(0, 0.5, 23, 1.5, fish_color, 1)
def update(self):