Home | Trees | Indices | Help |
---|
|
object --+ | timeline.Timeline --+ | Thing --+ | ClipThing
Use this to have this Thing become a clip for all its children. If you want to animate this entire ClipThing, then wrap it in another Thing.
This ClipThing can animate via its draw method, this will affect the clip(mask) itself -- create animated masks in this way. You would do this by making sure a slightly different path was drawn each frame. You could use a BagOfStuff path and draw a new path based on the 'frame_number' argument that gets passed to draw().
Typical use:
class ChopChop(ClipThing): def __init__(self,x, y): # the params are up to you ## Init the class ClipThing.__init__( self, id="button" ) self.add( SomeOtherThing ) #Will be clipped by what I draw() below. def draw(self,ctx,fr): ## Let's make a circle mask: drawACircle() #Do not stroke/fill it.
.
Instance Methods | |||
|
|||
Inherited from Inherited from Inherited from |
Instance Variables | |
Inherited from Inherited from |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue May 26 16:03:26 2009 | http://epydoc.sourceforge.net |