Source

pygame / docs / reST / ref / mask.rst

Full commit

:mod:`pygame.mask`

Useful for fast pixel perfect collision detection. A Mask uses 1bit per pixel to store which parts collide.

New in pygame 1.8.