module documentation

Contains functions for loading image files. The file types it supports are the same as what pygame.image supports.

Function load Undocumented
Function loadAll Undocumented
Function loadPattern Load a bunch of files that match the given globPattern, which may contain stars and other special characters as wildcards, e.g. 'pics/rocket*.png'. This is useful for loading many similarly-named files for animations...
def load(fileName, colorToMakeTransparent: pygame.color.Color = None):

Undocumented

def loadAll(listOfFiles, transparentColor: pygame.color.Color = None):

Undocumented

def loadPattern(globPattern, transparentColor: pygame.color.Color = None):

Load a bunch of files that match the given globPattern, which may contain stars and other special characters as wildcards, e.g. 'pics/rocket*.png'. This is useful for loading many similarly-named files for animations. The files will be sorted to keep the animation in order (assuming numbers often used as the wildcard, but this is not a fancy sort. If you have more than 10 images, always use two digits e.g. a01.png, rather than a1.png, a10.png, a2.png, a3.png, ...