pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
25 lines (22 loc) • 478 B
JavaScript
import { ExtensionType } from '../../../extensions/Extensions.mjs';
;
class ColorMask {
constructor(options) {
this.priority = 0;
this.pipe = "colorMask";
if (options?.mask) {
this.init(options.mask);
}
}
init(mask) {
this.mask = mask;
}
destroy() {
}
static test(mask) {
return typeof mask === "number";
}
}
ColorMask.extension = ExtensionType.MaskEffect;
export { ColorMask };
//# sourceMappingURL=ColorMask.mjs.map