Source

pygame / examples / arraydemo.py

Author Commit Message Labels Comments Date
Lenard Lindstrom
implement *_tags.py module replacement to *_test.py level tags. Now tests for unbuilt modules can be more easily skipped. Also the IGNORE and SUBPROCESS_IGNORE black lists in test/__init__.py goes away, replaced with *_tags.py tags.
Lenard Lindstrom
new _arraysurfarray module. blit_array bug 24 fix. blit_array now sets alpha to 255 for 3D array blit onto a SRCALPHA surface. _arraysurfarray is the foundation for adding new C surfarray C functions. It uses the array interface so works with the Numeric 24.2 as well. It has no NumPy specific code, doesn't include NumPy or Numeric headers.
Lenard Lindstrom
fix NumPy bug in arraydemo.py and add an array choice command line arguemnt
illume
updated examples so that they all have a main() and use pygame.quit
Lenard Lindstrom
examples can be run from outside the examples directory
marcus
Minor fix after the surfarray.use_arraytype() renaming.
marcus
Added numpy comments in arraydemo example.
marcus
Put numpyarray and the (old) surfarray under pygame.surfarray. Added methods to switch between numpy and Numeric usage.
illume
Made it save the screen as a .png file instead.
pygame
Fix off by one in arraydemo slicing
pygame
incorporate openbsd patches
pygame
event peek returns obj
pygame
new importing
pygame
image module redone
pygame
surfarray bugfixes Surface constructor is smarter with SRCALPHA surfdemo example and tutorial