Browse files

Update color table

  • Loading branch information...
1 parent 57ff0b4 commit 2ef6fad7bf568f50c414f7b3ac99f3fbba148e93 @kdeldycke committed Oct 16, 2011
Showing with 28 additions and 12 deletions.
  1. +28 −12 qlc-effects-generator.py
View
40 qlc-effects-generator.py
@@ -23,18 +23,34 @@
"""Hard-coded mapping of predefined colors.
In The future, use a big table based on Rosco and Lee filters.
"""
-COLORS = { 'Black' : ( 0, 0, 0)
- , 'White' : (255, 255, 255)
- , 'Red' : (255, 0, 0)
- , 'Green' : ( 0, 255, 0)
- , 'Blue' : ( 0, 0, 255)
- , 'Fushia': (255, 0, 255)
- , 'Rose' : (255, 0, 127)
- , 'Yellow': (255, 255, 0)
- , 'Orange': (255, 127, 0)
- , 'Violet': (127, 0, 255)
- , 'Cyan' : ( 0, 255, 255)
- }
+COLORS = {
+ # Extremes
+ 'Black': ( 0, 0, 0),
+ 'White': (255, 255, 255),
+ # RGB
+ 'Red' : (255, 0, 0),
+ 'Green': ( 0, 255, 0),
+ 'Blue' : ( 0, 0, 255),
+ # CMY
+ 'Cyan' : ( 0, 255, 255),
+ 'Magenta': (255, 0, 255),
+ 'Yellow' : (255, 255, 0),
+ # Bright CMY
+ 'Bright Cyan' : (127, 255, 255),
+ 'Bright Magenta': (255, 127, 255),
+ 'Bright Yellow' : (255, 255, 127),
+ # Pale colors
+ 'Salmon' : (255, 127, 127),
+ 'Lemon' : (127, 255, 127),
+ 'Lavender': (127, 127, 255),
+ # Rich colors
+ 'Azure' : ( 0, 127, 255),
+ 'Rose' : (255, 0, 127),
+ 'Chartreuse': (127, 255 0),
+ 'Green Blue': ( 0, 255, 127),
+ 'Purple' : (127, 0, 255),
+ 'Orange' : (255, 127, 0),
+ }
def getColorFromID(color_id):
DEFAULT_COLOR = 'Red'

0 comments on commit 2ef6fad

Please sign in to comment.