Table of Contents

Class: Color la.py

A color.

Base Classes   
_ReprMixin
    object
Methods   
__eq__
__ge__
__getitem__
__gt__
__init__
__le__
__len__
__lt__
__ne__
__str__
asGreyscale
combine
inverse
isGreyscale
normalize
reduce
  __eq__ 
__eq__ ( self,  other )

  __ge__ 
__ge__ ( self,  other )

Exceptions   
TypeError, "no ordering on colors"
  __getitem__ 
__getitem__ ( self,  index )

  __gt__ 
__gt__ ( self,  other )

Exceptions   
TypeError, "no ordering on colors"
  __init__ 
__init__ (
        self,
        r,
        g,
        b,
        a=1.0,
        )

  __le__ 
__le__ ( self,  other )

Exceptions   
TypeError, "no ordering on colors"
  __len__ 
__len__ ( self )

  __lt__ 
__lt__ ( self,  other )

Exceptions   
TypeError, "no ordering on colors"
  __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.


Table of Contents

This document was automatically generated on Sat Feb 17 22:24:25 2007 by HappyDoc version 2.1