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

[pygame] Numeric and numpy surface array now under pygame.surfarray



Hi,

I just wrapped the old Numeric pygame.surfarray and new numpy
pygame.numpyarray in pygame.surfarray.

This means, that you only need to use pygame.surfarray, but can switch
between Numeric and numpy at runtime using
        pygame.surfarray.use_array ("numpy") for numpy
        pygame.surfarray.use_array ("numeric") for Numeric

You also can query the available types using 
        pygame.surfarray.get_arraytypes ()

You'll find it in SVN rev. 1075.

Regards
Marcus

Attachment: pgpTGNLOWZ2M4.pgp
Description: PGP signature