Image des TMRs adoucie par défaut

plutôt que par PIXI

taille de l'image réduite
This commit is contained in:
Vincent Vandemeulebrouck 2021-11-27 00:03:47 +01:00
parent b8ba30a5a3
commit ee45fee623
2 changed files with 0 additions and 6 deletions

View File

@ -55,12 +55,6 @@ export class PixiTMR {
carteTmr.interactive = true; carteTmr.interactive = true;
carteTmr.buttonMode = true; carteTmr.buttonMode = true;
carteTmr.tmrObject = this; carteTmr.tmrObject = this;
// atténue les couleurs des TMRs
const tmrColorFilter = new PIXI.filters.ColorMatrixFilter();
tmrColorFilter.contrast(1);
tmrColorFilter.brightness(0.2);
tmrColorFilter.saturate(-0.5);
carteTmr.filters = [tmrColorFilter];
if (!this.tmrObject.viewOnly) { if (!this.tmrObject.viewOnly) {
carteTmr.on('pointerdown', event => this.onClickBackground(event)); carteTmr.on('pointerdown', event => this.onClickBackground(event));
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 313 KiB