Package schrodinger :: Module surface :: Class Color
[hide private]
[frames] | no frames]

Class Color

object --+        
         |        
       int --+    
             |    
object --+   |    
         |   |    
 enum.Enum --+    
             |    
  enum.IntEnum --+
                 |
                Color

Mmvol colors. Also used for constant color surfaces.

Nested Classes [hide private]

Inherited from enum.IntEnum: _member_type_

Instance Methods [hide private]
 
rgb(self)
Return an RGB tuple describing the color.

Inherited from enum.IntEnum: __format__, __reduce_ex__, __repr__, __str__

Inherited from int: __abs__, __add__, __and__, __cmp__, __coerce__, __div__, __divmod__, __float__, __floordiv__, __getattribute__, __getnewargs__, __hash__, __hex__, __index__, __int__, __invert__, __long__, __lshift__, __mod__, __mul__, __neg__, __nonzero__, __oct__, __or__, __pos__, __pow__, __radd__, __rand__, __rdiv__, __rdivmod__, __rfloordiv__, __rlshift__, __rmod__, __rmul__, __ror__, __rpow__, __rrshift__, __rshift__, __rsub__, __rtruediv__, __rxor__, __sub__, __truediv__, __trunc__, __xor__, bit_length, conjugate

Inherited from enum.Enum: __dir__

Inherited from object: __delattr__, __init__, __reduce__, __setattr__, __sizeof__, __subclasshook__

Static Methods [hide private]

Inherited from enum.IntEnum: __new__

Class Variables [hide private]
  black = 1
  gray = 2
  dark_blue = 3
hash(x)
  blue = 4
  light_blue = 5
  aquamarine = 6
  turquoise = 7
  spring_green = 8
  dark_green = 9
  green = 10
  lime_green = 11
  yellow_green = 12
  yellow = 13
  orange = 14
  maroon = 15
  red = 16
  pink = 17
  plum = 18
  magenta = 19
  blue_violet = 20
  white = 21
  cyan = 22
  _member_map_ = OrderedDict([('black', <Color.black: 1>), ('gra...
  _member_names_ = ['black', 'gray', 'dark_blue', 'blue', 'light...
  _value2member_map_ = {1: <Color.black: 1>, 2: <Color.gray: 2>,...

Inherited from enum.IntEnum: __eq__, __ge__, __gt__, __le__, __lt__, __ne__

Inherited from enum.Enum: name, value

Properties [hide private]

Inherited from int: denominator, imag, numerator, real

Inherited from object: __class__

Method Details [hide private]

rgb(self)

 

Return an RGB tuple describing the color.

Decorators:
  • @mmvol_func

Class Variable Details [hide private]

_member_map_

Value:
OrderedDict([('black', <Color.black: 1>), ('gray', <Color.gray: 2>), (\
'dark_blue', <Color.dark_blue: 3>), ('blue', <Color.blue: 4>), ('light\
_blue', <Color.light_blue: 5>), ('aquamarine', <Color.aquamarine: 6>),\
 ('turquoise', <Color.turquoise: 7>), ('spring_green', <Color.spring_g\
reen: 8>), ('dark_green', <Color.dark_green: 9>), ('green', <Color.gre\
en: 10>), ('lime_green', <Color.lime_green: 11>), ('yellow_green', <Co\
lor.yellow_green: 12>), ('yellow', <Color.yellow: 13>), ('orange', <Co\
lor.orange: 14>), ('maroon', <Color.maroon: 15>), ('red', <Color.red: \
...

_member_names_

Value:
['black',
 'gray',
 'dark_blue',
 'blue',
 'light_blue',
 'aquamarine',
 'turquoise',
 'spring_green',
...

_value2member_map_

Value:
{1: <Color.black: 1>,
 2: <Color.gray: 2>,
 3: <Color.dark_blue: 3>,
 4: <Color.blue: 4>,
 5: <Color.light_blue: 5>,
 6: <Color.aquamarine: 6>,
 7: <Color.turquoise: 7>,
 8: <Color.spring_green: 8>,
...