| Home | Trees | Indices | Help |
|---|
|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
r = property(itemgetter(0), _replace(0))
|
|||
g = property(itemgetter(1), _replace(1))
|
|||
b = property(itemgetter(2), _replace(2))
|
|||
a = property(itemgetter(3), _replace(3))
|
|||
|
|||
Scale the colour by some factor. If factor is a single value, it is applied only to the RGB components; if it is a pair then the second value is applied to alpha (and folded in to RGB too). So 0.5 would reduce RGB by half; (1, 0.5) would reduce alpha by half (and scale RGB correspondingly); (0.5, 0.5) would scale RGB and reduce alpha (so pre-multiplied RGB would be numerically scaled by 0.25). After scaling, values are clipped within (0, 1). |
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Sun Jan 8 17:18:48 2012 | http://epydoc.sourceforge.net |