Source

pygame / doc / capi / mask.rst

pygame2.mask

The :mod:`pygame2.mask` C API contains some objects and functions for bitmask operations.

Import

Include headers:

pygame2/pgmask.h

Basic Types

PyMask

The PyMask object is suitable for fast pixel-perfect overlapping checks.

Members

Functions