Package pyj2d :: Module mask

Module mask

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

from_surface(surface, threshold=127)

 

pyj2d.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))

 

pyj2d.mask.from_threshold

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