Trees | Indices | Help |
|
---|
|
Stores color internally as (R,G,B,A) and allows setting and getting in multiple formats
|
|||
|
|||
int |
|
||
|
|||
int |
|
||
|
|||
int |
|
||
|
|||
int |
|
||
|
|||
String |
|
||
String |
|
||
tuple of ints |
|
||
Inherited from |
|
|||
ColorHolder |
|
|
|||
_color = {'red': 0, 'green': 0, 'blue': 0, 'alpha': 255}
|
|
|||
Inherited from |
|
If colorname is 'red', 'green' or 'blue', set color accordingly - Otherwise black
|
Class method for creating a ColorHolder from r,g,b,a values
|
Gets the Red component
|
Set red, as int 0..255
|
Gets the Green component
|
Set green, as int 0..255
|
Gets the Blue component
|
Set Blue, as int 0..255
|
Gets the Alpha component
|
Set alpha, as int 0..255.
|
Gets the html usable color. Dumps the alpha information. E.g. 'FF0000'
|
Gets the css string: rgba(r,g,b,a)
|
Gets the (r,g,b) as a tuple.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jan 24 19:48:49 2012 | http://epydoc.sourceforge.net |