Open ajex-china opened 2 years ago
Yes,
Example:
let maskContainer = new createjs.Container(); ... let mask = new createjs.Shape(); mask.graphics.drawRect(0,0, sizeX, sizeY); maskContainer.mask = mask; .... maskContainer.addChild(scrollcontentContainer); .... maskContainer.cache( 0, 0, sizeX, sizeY); ... //On every change maskContainer.updateCache();
Is it possible to make webgl mask work in animation?