Re: gooing, gooing, gone?



On Sat, 2010-02-06 at 06:57 +0200, donn wrote:
> Hi again,
> I am currently looking at pygoocanvas and pyclutter with a mind to 
> adapting* an animation API (I wrote using pycairo : 
> http://otherwise.relics.co.za/wiki/Software/Things/) which requires 
> several basic capabilities:
> 
> 1. Containment -- a scene-graph kind of parent/child tree where 
> position, scale and rotation all bubble down.
> 2. Clipping of contained children:
> Example: A triangle shape on the parent clips *all* the children, which 
> can animate etc. under it.
> 3. Path following -- Animate a group or an item given a path (pref. an 
> SVG path). Easing options?
> 4. Hit detection -- Provide a simple shape (not drawn) for detecting 
> mouse hits.
> 
> Could you give me some clues (and code!) to demonstrate any of these? I 
> know this is lazy, but I am floundering between pygoocanvas and 
> pyclutter and the docs for both are rather opaque.

I think you can do 1, 2 and 4 with GooCanvas, but not 3. You'd have to
install your own timeout function and do the animation there.

I think the demo covers the things GooCanvas can do.

The only thing I'm unsure of is clipping children. I think it should
work if you set a clip path on a group, but I don't remember testing
that.

Damon




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]