Source

pygame / test / mask_test.py

Author Commit Message Labels Comments Date
illume
[BUG] Fixed up pygame.mask.from_surface, got color key, and perpixel alpha modes reversed. Also added better test to the mask test. Also it wasn't testing pygame.mask.from_surface at all! Added pygame.sprite.collide_mask to join the mask_* collision functions. Started adding test for pygame.sprite.spritecollide.
illume
Mask can now get bounding rects of set bits. pygame.transform can find edges in an image, get the average surface of many surfaces and also threshold an image by color.
illume
Adding a pygame.mask.from_surface function but it's not working. it's segfaulting and gdb doesn't give me love.
illume
mask.set_at get_at raise nice exceptions. Thanks piman!
illume
Started on a unittest for Mask.