CanvasMaskManager Class
A set of functions used to handle masking
Methods
popMask
(
-
context
Restores the current drawing context to the state it was before the mask was applied
Parameters:
-
context
Context2Dthe 2d drawing method of the canvas
pushMask
(
-
maskData
-
context
This method adds it to the current stack of masks
Parameters:
-
maskData
Objectthe maskData that will be pushed
-
context
Context2Dthe 2d drawing method of the canvas