A color.
Methods
|
|
|
|
__eq__
|
__eq__ ( self, other )
|
|
__ge__
|
__ge__ ( self, other )
|
|
__getitem__
|
__getitem__ ( self, index )
|
|
__gt__
|
__gt__ ( self, other )
|
|
__init__
|
__init__ (
self,
r,
g,
b,
a=1.0,
)
|
|
__le__
|
__le__ ( self, other )
|
|
__len__
|
__len__ ( self )
|
|
__lt__
|
__lt__ ( self, other )
|
|
__ne__
|
__ne__ ( self, other )
|
|
__str__
|
__str__ ( self )
|
|
asGreyscale
|
asGreyscale ( self )
Convert the color to a single greyscale value.
|
|
combine
|
combine ( self, other )
Combine this color with that color, resulting in the
average.
|
|
inverse
|
inverse ( self, includingAlpha=False )
Return the inverse of the color.
|
|
isGreyscale
|
isGreyscale ( self )
Is this color grey?
|
|
normalize
|
normalize ( self )
|
|
reduce
|
reduce ( self, alpha=None )
Return a new color (with no alpha) with the given alpha
applied.
|