Hi,
I want to pick the color (RGB) values on ClickDown over Sprite2.
Both sprite has same dimensions.
But Color is always Null:
var containerX = 210;
var containerY = 490;
this.my_container = this.add.container(containerX,containerY);
this.sprite1 = this.add.sprite(0,0,'sprite1');
this.sprite1.setOrigin(0);
this.my_container.add(this.sprite1);
this.sprite2 = this.add.sprite(0,0,'sprite2_mask');
this.sprite2.setOrigin(0);
this.sprite2.setInteractive();
this.sprite2.alpha = 0.01;
this.sprite2.on('pointerdown',function (pointer){
var color = this.textures.getPixel(pointer.x , pointer.y , 'sprite2_mask');
console.log('PointerDown', color );
},this);