class documentation

class Color:

View In Hierarchy

A Color object models an RGB color.

Method __init__ Construct self such that it has the given red (r), green (g), and blue (b) components.
Method __str__ Return the string equivalent of self, that is, a string of the form '(r, g, b)'.
Method get_blue Return the blue component of self.
Method get_green Return the green component of self.
Method get_red Return the red component of self.
Instance Variable _b Undocumented
Instance Variable _g Undocumented
Instance Variable _r Undocumented
def __init__(self, r=0, g=0, b=0):

Construct self such that it has the given red (r), green (g), and blue (b) components.

Parameters
r:floatUndocumented
g:floatUndocumented
b:floatUndocumented
def __str__(self):

Return the string equivalent of self, that is, a string of the form '(r, g, b)'.

def get_blue(self):

Return the blue component of self.

Returns
floatUndocumented
def get_green(self):

Return the green component of self.

Returns
floatUndocumented
def get_red(self):

Return the red component of self.

Returns
floatUndocumented
_b =

Undocumented

_g =

Undocumented

_r =

Undocumented