| Home | Trees | Indices | Help | 
 | 
|---|
|  | 
object --+
         |
        Color
RGB color handling class. Color is stored as r, g, b, and a (i.e. 
  alpha) attributes. Default color is 
  r=g=b=0 (i.e. black) with 
  a=255
| Instance Methods | |||
| 
 | |||
| 
 | |||
| 
 | |||
| str | 
 | ||
| Inherited from  | |||
| Static Methods | |||
| 
 | |||
| Properties | |
| int | a the alpha value of the RGB color. | 
| 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{separator}a, where the final '{separator}a' is optional. 
 | 
| 
 Formats the color for use in CLANS files. 
 | 
| Property Details | 
| athe alpha value of the RGB color. raises ValueError if  
 | 
| 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 Tue Jul 4 20:19:04 2017 | http://epydoc.sourceforge.net |