Package mmLib :: Module Colors
[show private | hide private]
[frames | no frames]

Module mmLib.Colors

Library of colors matching PyMol color names.
Function Summary
  rgbf2rgbi(rgbf)
Converts a RGB/float color into a RGB/integer.
  rgbi2rgbf(rgbf)
Converts a RGB/integer color into a RGB/float.

Variable Summary
list COLOR_NAMES = ['white', 'black', 'blue', 'green', 'magen...
list COLOR_NAMES_CAPITALIZED = ['White', 'Black', 'Blue', 'Gr...
dict COLOR_RGBF = {'brown': (0.55500000000000005, 0.274000000...
dict COLOR_RGBI = {'brown': (141, 69, 38), 'tv_blue': (76, 76...
list COLORS = [('white', (1.0, 1.0, 1.0)), ('black', (0.0, 0....

Function Details

rgbf2rgbi(rgbf)

Converts a RGB/float color into a RGB/integer.

rgbi2rgbf(rgbf)

Converts a RGB/integer color into a RGB/float.

Variable Details

COLOR_NAMES

Type:
list
Value:
['white',
 'black',
 'blue',
 'green',
 'magenta',
 'red',
 'cyan',
 'yellow',
...                                                                    

COLOR_NAMES_CAPITALIZED

Type:
list
Value:
['White',
 'Black',
 'Blue',
 'Green',
 'Magenta',
 'Red',
 'Cyan',
 'Yellow',
...                                                                    

COLOR_RGBF

Type:
dict
Value:
{'black': (0.0, 0.0, 0.0),
 'blue': (0.0, 0.0, 1.0),
 'bluegreen': (0.0, 1.0, 0.5),
 'blueviolet': (0.5, 0.0, 1.0),
 'br0': (0.10000000000000001, 0.10000000000000001, 1.0),
 'br1': (0.20000000000000001, 0.10000000000000001, 0.90000000000000002\
),
 'br2': (0.29999999999999999, 0.10000000000000001, 0.80000000000000004\
...                                                                    

COLOR_RGBI

Type:
dict
Value:
{'black': (0, 0, 0),
 'blue': (0, 0, 255),
 'bluegreen': (0, 255, 127),
 'blueviolet': (127, 0, 255),
 'br0': (25, 25, 255),
 'br1': (51, 25, 229),
 'br2': (76, 25, 204),
 'br3': (102, 25, 178),
...                                                                    

COLORS

Type:
list
Value:
[('white', (1.0, 1.0, 1.0)),
 ('black', (0.0, 0.0, 0.0)),
 ('blue', (0.0, 0.0, 1.0)),
 ('green', (0.0, 1.0, 0.0)),
 ('magenta', (1.0, 0.0, 1.0)),
 ('red', (1.0, 0.0, 0.0)),
 ('cyan', (0.0, 1.0, 1.0)),
 ('yellow', (1.0, 1.0, 0.0)),
...                                                                    

Generated by Epydoc 2.1 on Sun Apr 23 22:08:38 2006 http://epydoc.sf.net