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

Re: [pygame] Fast method for pixellated animation



Hi,
I would like an efficient way to generate an animated grey-scale
"pixellated" image. For example, to be able to generate an image say of
100 X 100 pixels, where I can specify the size of the image on the screen
(which thus determines the size of the pixels). One way would be to treat
each pixel as a filled rectangle and draw them accordingly, but this could
be quite slow since it has to do this 10,000 times for each image. Another
way might be to just generate the image as a 100X100 image but "magnified"
and thus automatically obtaining the same result. Is this possible? If
not, is there yet another way to do this that might be more efficient?
thanks,
john