FastRenderGroup is a spritegroup like in the pygame.sprite module,
except that draws things much faster. It handles layers too and switches between
dirty rect drawing to full screen drawing if full screen drawing is faster. So
you don't have to worry what would be faster.
There is only one LIMITATION: all sprites must be added to this group to be drawn correctly. For more information see the readme.txt and the docstrings.
A name for the different groups has been found: LayeredUpdates for the group supporting layers and LayeredDirty for the group using the DirtySprites. Both will be added to pygame 1.8.
It's a faked magnifying lens effect written in pygame using the standard sprite module.
Some time ago surfing the web I got on a homepage which presented their products. To see the details there was a similar lens effect (done in Flash). So I decided to try to make one in python.
Had some trouble with the colorkey and alpha settings on the surfaces. Now it works, but if some one knows how to do this better, please tell me.
First I wanted to do a magnetic needle simulation and ended up with this.
The needles point always where the mouse is, it does nothing else. (so they are NOT magnetic needles)
Gradient function to draw gradients. Line-, circular- and rectangular shaped gradients.
Every color can have its own gradient function, for maximal control of the gradient.
There is also a z=f(x,y) gradient function, it can generate nice patterns.
Check out the demo. Numeric is only 2-3 times faster for linear gradients, if you know a faster way to generate gradients in python/pygame tell me please.
It is a clone of
It is enhanced in the sense that it is multi-playable now. At the moment only at one computer,
but I plan to extend it with an network interface so you can play on a LAN network. It is still
under development, but yet playable.