Package pyjsdl :: Module mask

Module mask

Classes
  Mask
pyjsdl.mask.Mask
Functions
 
from_surface(surface, threshold=127)
pyjsdl.mask.from_surface
 
from_threshold(surface, color, threshold=(0,0,0,255))
pyjsdl.mask.from_threshold
Function Details

from_surface(surface, threshold=127)

 

pyjsdl.mask.from_surface

Return Mask derived from surface using alpha transparency. Optional argument to set alpha threshold.

from_threshold(surface, color, threshold=(0,0,0,255))

 

pyjsdl.mask.from_threshold

Return Mask from surface using a given color. Optional threshold argument to set color range and alpha threshold.