clip masks/simulating transparency

2011-05-30 Thread Amy C
Hi all, Being recently introduced to xpenguins, I thought it would be hilarious to get the penguins to run around in a window of my choice instead of the desktop (small things for small minds...;)). To this end I've started fiddling around with the xpenguins source and learning Xlib along the

Re: clip masks/simulating transparency

2011-05-30 Thread Amy C
Hi all, I've sort-of worked it out (I think??) but would still like suggestions on this. The penguins -are- being drawn using the clip mask correctly onto the window of my choice. The problem was that each penguin comprises a little animation (penguin is moving), and the expose event was only

xpenguins cont'd - repainting a window after penguins walk on it, and when penguins overlap.

2011-06-06 Thread Amy C
Hi all, After a few days' break I've returned to modifying the xpenguins source to run in a window of my choosing (e.g. terminal). I've finally (partially) resolved the problem of restoring the background behind the penguins (so they don't leave trails where they've walked over icons and such)

Re: xpenguins cont'd - repainting a window after penguins walk on it, and when penguins overlap.

2011-06-06 Thread Amy C
Thanks all for your suggestions, they're much appreciated! I'm going to try the collision detection as an exercise since it seems like a classic problem and I have an easy case (2D rectangles). I'll also look into the SHAPE extension and have a tinker. Pat - the Grug books by Ted Prior were