# Get pixel to renderTexture

**URL:** https://phaser.discourse.group/t/get-pixel-to-rendertexture/5587
**Category:** Phaser 3
**Created:** [March 20, 2020, 4:42pm UTC](https://phaser.discourse.group/t/get-pixel-to-rendertexture/5587 "2020-03-20T16:42:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gulands](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@gulands](https://phaser.discourse.group/u/gulands)
#### Post date: [March 20, 2020, 4:42pm UTC](https://phaser.discourse.group/t/get-pixel-to-rendertexture/5587/1 "2020-03-20T16:42:54Z")

</div>

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](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!
