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

Module Colors

source code

Library of colors matching PyMol color names.

Functions [hide private]
 
rgbf2rgbi(rgbf)
Converts a RGB/float color into a RGB/integer.
source code
 
rgbi2rgbf(rgbf)
Converts a RGB/integer color into a RGB/float.
source code
Variables [hide private]
  COLORS = [('white', (1.0, 1.0, 1.0)), ('black', (0.0, 0.0, 0.0...
  COLOR_NAMES = ['white', 'black', 'blue', 'green', 'magenta', '...
  COLOR_NAMES_CAPITALIZED = ['White', 'Black', 'Blue', 'Green', ...
  COLOR_RGBF = {'black': (0.0, 0.0, 0.0), 'blue': (0.0, 0.0, 1.0...
  COLOR_RGBI = {'black': (0, 0, 0), 'blue': (0, 0, 255), 'bluegr...
  __package__ = None
hash(x)
  name = 'wheat'
  rgb = (0.99, 0.82, 0.65)
Variables Details [hide private]

COLORS

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)),
...

COLOR_NAMES

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

COLOR_NAMES_CAPITALIZED

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

COLOR_RGBF

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.1, 0.1, 1.0),
 'br1': (0.2, 0.1, 0.9),
 'br2': (0.3, 0.1, 0.8),
 'br3': (0.4, 0.1, 0.7),
...

COLOR_RGBI

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),
...