Module pinky :: Class Color

Class Color

object --+
         |
        Color

An RGB color with integer components in the [0, 255] range.

Instance Methods
 
__init__(self, red=0, green=0, blue=0)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__iter__(self)
 
__str__(self)
str(x)
 
__repr__(self)
repr(x)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods
 
parse(cls, color_str)
Properties
  float_components

Inherited from object: __class__

Method Details

__init__(self, red=0, green=0, blue=0)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Property Details

float_components

Get Method:
unreachable.float_components(self)