Package pyjsdl :: Module color :: Class Color

Class Color

pyjsobj.Color --+
                |
               Color

Instance Methods
 
__init__(self, *color)
Return Color object.
 
__str__(self)
 
__repr__(self)
 
__getitem__(self, index)
 
__setitem__(self, index, val)
 
__iter__(self)
 
__len__(self)
 
__eq__(self, other)
 
__ne__(self, other)
Method Details

__init__(self, *color)
(Constructor)

 

Return Color object.

Alternative arguments:

  • r,g,b,a
  • r,g,b
  • (r,g,b,a)
  • (r,g,b)
  • integer rgba
  • Color

Color has the attributes:

r, g, b, a

Module initialization places pyjsdl.Color in module's namespace.