chore: naming
This commit is contained in:
parent
015239230e
commit
69e473275a
|
@ -26,7 +26,7 @@ export class Container extends Renderable {
|
|||
desaturate() {
|
||||
let filter = new PIXI.filters.ColorMatrixFilter();
|
||||
filter.desaturate();
|
||||
this.internal.filters = [filter];
|
||||
this.container.filters = [filter];
|
||||
}
|
||||
|
||||
destroy() {
|
||||
|
@ -35,6 +35,7 @@ export class Container extends Renderable {
|
|||
child.destroy();
|
||||
});
|
||||
super.destroy();
|
||||
this.container.filters = [];
|
||||
}
|
||||
|
||||
get internal() {
|
||||
|
@ -67,18 +68,18 @@ export class Container extends Renderable {
|
|||
0 , 0 , 0 , 1, 0,
|
||||
];
|
||||
filter._loadMatrix(matrix);
|
||||
this.internal.filters = [filter];
|
||||
this.container.filters = [filter];
|
||||
}
|
||||
|
||||
paused(intensity = 1) {
|
||||
let filter = new PIXI.filters.ColorMatrixFilter();
|
||||
filter.sepia();
|
||||
filter.brightness(1 - intensity, true);
|
||||
this.internal.filters = [filter];
|
||||
this.container.filters = [filter];
|
||||
}
|
||||
|
||||
removeAllFilters() {
|
||||
this.internal.filters = [];
|
||||
this.container.filters = [];
|
||||
}
|
||||
|
||||
_removeChild(child) {
|
||||
|
@ -147,7 +148,7 @@ export class Container extends Renderable {
|
|||
sepia() {
|
||||
let filter = new PIXI.filters.ColorMatrixFilter();
|
||||
filter.sepia();
|
||||
this.internal.filters = [filter];
|
||||
this.container.filters = [filter];
|
||||
}
|
||||
|
||||
setFilter(filter) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user