Get pixel to renderTexture

Hi, I’m creating a scratch card with phaser 3 in angular, I can do the “scratched” effect but I can’t get a value on the scratched area, I mean, I would like to know how much texture I removed.

This is my code:
https://pastebin.com/mFCDHcyC

The test function always returns me 0.
Does anyone know of another method of scratching or taking data on how much texture I removed?
Thanks!

1 Like