summon.colors
index
/home/raz/projects/summon/lib/summon/colors.py

Summon - colors modules

 
Modules
       
atexit
copy
math
summon_core
threading
time
summon.vector

 
Classes
       
ColorMap
PosNegColorMap
RainbowColorMap
SolidColorMap

 
class ColorMap
    ColorMap maps values on the real line to colors
 
  Methods defined here:
__init__(self, table=[])
'table' should be the following format:
 
[
  [val1, color1],
  [val2, color2],
  [val3, color3],
  ...etc..
]
 
Values bewteen val1 and val2 will be assigned a blend of 
color1 and color2.  value-color pairs can be specified in any order 
within table.
get(self, value)
Returns values in [0, 1]
getInt(self, value)

 
class PosNegColorMap
     Methods defined here:
__init__(self, minv=-1.0, maxv=1.0)
get(self, val)

 
class RainbowColorMap
     Methods defined here:
__init__(self, maxv=1.0, minv=0.0)
get(self, val)

 
class SolidColorMap
     Methods defined here:
__init__(self, maxv=1.0, minv=0.0)
get(self, val)

 
Functions
       
readColorMap(filename)

 
Data
        black = (17, 0, 0, 0, 1.0)
blue = (17, 0, 0, 1, 1.0)
brown = (17, 0.69999999999999996, 0.40000000000000002, 0, 1.0)
green = (17, 0, 1, 0, 1.0)
grey = (17, 0.5, 0.5, 0.5, 1.0)
orange = (17, 1, 0.5, 0, 1.0)
purple = (17, 1, 0, 1, 1.0)
red = (17, 1, 0, 0, 1.0)
white = (17, 1, 1, 1, 1.0)
yellow = (17, 1, 1, 0, 1.0)