__init__(self,
x=0,
y=0,
a=1.0,
rot=0.0,
sx=1,
sy=1,
sz=None,
rx=0,
ry=0.0,
r=0.0,
g=0.0,
b=0.0,
tint=0.0)
(Constructor)
|
|
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
- Parameters:
x , y - Positional coordinate relative to the center of the screen.
a - Alpha; a float between 0 (transparent) and 1 (opaque).
rot - Rotation; in radians -- a full turn is pi*2
rx , ry - A point about which to rotate.
sx , sy - Scale; setting them to different values will distort and stretch
your Thing. You can use the param sz to set both at once.
r , g , b , tint - RGB colour values; floats 0 to 1. Tint is amount of colour to use
over Thing. Used to fade from one colour to another, with varying
amounts. This will only take effect when tint is not 0.
WARNING: Tinting it *slow*. It's better to have duplicate
paths of differing colours, or to draw your own paths and control
the stroke/fill colour manually.
- Overrides:
object.__init__
- (inherited documentation)
|