Image des TMRs adoucie par défaut
plutôt que par PIXI taille de l'image réduite
This commit is contained in:
parent
b8ba30a5a3
commit
ee45fee623
@ -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 |
Loading…
Reference in New Issue
Block a user