I see it is possible to use getPIxel with a texture key but I cannot find the way to use getPixel “directly” on the screen or on the canvas of the game. Can I do this? Or can I “transfer” the content of the canvas to a texture and then use getPixel?
See the snapshotPixel
method in the renderer (this.game.renderer
from a scene). It exists in both Canvas and WebGL.
1 Like
Thanks, I’m going to try
Yes, thanks to your help I have found this example: https://phaser.io/examples/v3/view/snapshot/snapshot-pixel
… and it is working