Home | Trees | Indices | Help |
|
---|
|
object --+ | Color
RGB color handling class. Color is stored as r, g, and b attributes.
Default color is r
=g
=b
=0 (i.e.
black)
Instance Methods | |||
|
|||
|
|||
|
|||
str |
|
||
Inherited from |
Static Methods | |||
|
Properties | |
int |
b the blue value of the RGB color. |
int |
g the green value of the RGB color. |
int |
r the red value of the RGB color. |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
str(x)
|
str(x)
|
Factory for a Color instance created from a string formatted as r{separator}g{separator}b
|
Formats the color for use in CLANS files.
|
Property Details |
bthe blue value of the RGB color. raises ValueError if
|
gthe green value of the RGB color. raises ValueError if
|
rthe red value of the RGB color. raises ValueError if
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jul 2 23:48:45 2012 | http://epydoc.sourceforge.net |