Files

30 lines
689 B
JavaScript
Raw Permalink Normal View History

2025-01-04 00:34:03 +01:00
/**
* A layer of background alteration effects which change the appearance of the primary group render texture.
* @category - Canvas
*/
class CanvasDarknessEffects extends CanvasLayer {
constructor() {
super();
this.sortableChildren = true;
}
/* -------------------------------------------- */
/**
* Clear coloration effects container
*/
clear() {
this.removeChildren();
}
/* -------------------------------------------- */
/** @override */
async _draw(options) {
this.filter = VoidFilter.create();
this.filter.blendMode = PIXI.BLEND_MODES.NORMAL;
this.filterArea = canvas.app.renderer.screen;
this.filters = [this.filter];
}
}