Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add missing color dict import for more_effects.

  • Loading branch information...
commit 6d50328084ec3fdc01087ddb86e1701121da413d 1 parent 2ed22de
Jessica McKellar authored

Showing 2 changed files with 2 additions and 12 deletions. Show diff stats Hide diff stats

  1. +1 12 advanced_effects.py
  2. +1 0  more_effects.py
13 advanced_effects.py
... ... @@ -1,22 +1,11 @@
1 1 import random
2 2 import time
3   -import ascii8x8
  3 +from effects import colors
4 4
5 5 """
6 6 advanced_effects use a class hierarchy to run on the wall.
7 7 """
8 8
9   -# A dictionary of hsv values for some common colors.
10   -colors = {"black":(0, 0, 0), "white":(0, 0, 1), "gray":(0, 0, 0.5),
11   - "red":(0, 1, 1), "blue":(0.66, 1, 1), "yellow":(0.16, 1, 1),
12   - "purple":(0.85, 1, 0.5), "green":(0.33, 1, 0.5),
13   - "orange":(0.083, 1, 1), "pink":(0.9, 1, 1), "lime":(0.33, 1, 1),
14   - "baby blue":(0.66, 0.5, 1), "cyan":(0.5, 1, 1),
15   - "brown":(0.07, 0.86, 0.54), "beige":(0.083, 0.32, 1),
16   - "indigo":(0.75, 1, 0.5), "dark gray":(0, 0, 0.15),
17   - "light gray":(0, 0, 0.75), "maroon":(0, 1, 0.5),
18   - "navy":(0.66, 1, 0.25)}
19   -
20 9 class Effect(object):
21 10 def __init__(self, wall):
22 11 self.wall = wall
1  more_effects.py
... ... @@ -1,6 +1,7 @@
1 1 import ascii8x8
2 2 import random
3 3 import time
  4 +from effects import colors
4 5
5 6 def HueTest(wall):
6 7 print "HueTest"

0 comments on commit 6d50328

Please sign in to comment.
Something went wrong with that request. Please try again.