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

Re: [pygame] Per Pixel Alpha



this is slow and could be sped up quite a bit btw. just my 2 cents.
use xrange instead of range if your just looping through integers.
lock the surface before you start setting it's pixels with set_at.
and then unlock it when your done