Re: [pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-20 Thread Casey Duncan
This is excellent work, thanks for doing it! One unexpected observation: 06-circle-alpha with colorkey+RLEACCEL is incredibly fast compared to 05-circle-noalpha, I wouldn't have expected that. Can anyone explain why this might be so? Was that actually blitting anything visible? Actually

Re: [pygame] Benchmarking alpha blits (was Re: How do I make a image transparent?)

2007-09-20 Thread Ethan Glasser-Camp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Casey Duncan wrote: This is excellent work, thanks for doing it! One unexpected observation: 06-circle-alpha with colorkey+RLEACCEL is incredibly fast compared to 05-circle-noalpha, I wouldn't have expected that. Can anyone explain why this

Re: [pygame] more list problems

2007-09-20 Thread Noah Kantrowitz
An idiomatic way would be this: if event.button == 3: rect = [r for r in rect if not r.collidepoint(*event.pos)] --Noah On Sep 20, 2007, at 8:18 PM, Eric Hunter wrote: so I have been able to write pygame.Rect rectangles into rect-type lists. but now I'm trying to delete unwanted

Re: [pygame] more list problems

2007-09-20 Thread DR0ID
Eric Hunter schrieb: so I have been able to write pygame.Rect rectangles into rect-type lists. but now I'm trying to delete unwanted rectangles that are printed to the screen. when I draw one at a time, I can only delete the last drawn rectangle before deleting the previous ones. I want to