# Drawing/masking over textures and creating a new texture

**URL:** <https://phaser.discourse.group/t/drawing-masking-over-textures-and-creating-a-new-texture/2113>\
**Category:** Phaser 3\
**Created:** [April 15, 2019, 4:52pm UTC](https://phaser.discourse.group/t/drawing-masking-over-textures-and-creating-a-new-texture/2113 "2019-04-15T16:52:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jake.Caron](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/jake.caron/32/1841_2.png) [@Jake.Caron](https://phaser.discourse.group/u/Jake.Caron)\
**Post date:** [April 15, 2019, 4:52pm UTC](https://phaser.discourse.group/t/drawing-masking-over-textures-and-creating-a-new-texture/2113/1 "2019-04-15T16:52:51Z")

</div>

Hi All, I am trying to create a game very similar to the following: [https://www.abcya.com/games/fuzz\_bugs\_factory](https://www.abcya.com/games/fuzz_bugs_factory)

Any thoughts on how I would be able to program painting/filling masks and in the end exporting a new, unique texture that can be used in Phaser?

---

<div class="post-metadata">

**Author:** ![hcakar](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/hcakar/32/459_2.png) [@hcakar](https://phaser.discourse.group/u/hcakar)\
**Post date:** [April 16, 2019, 6:54am UTC](https://phaser.discourse.group/t/drawing-masking-over-textures-and-creating-a-new-texture/2113/2 "2019-04-16T06:54:55Z")

</div>

Hey @Jake.Caron,  
I believe you can make the exact same game with phaser. There is this `setTint` method, you can partially paint an image or sprite([for examples](https://labs.phaser.io/index.html?dir=display/tint/&q=)). About generating new texture’s, there is this [`generateTexture`](https://labs.phaser.io/view.html?src=src%5Cgame%20objects%5Cgraphics%5Cgenerate%20texture%20test.js) method of [`Graphics`](https://labs.phaser.io/index.html?dir=game%20objects/graphics/&q=). I’m not sure about also if animation can be done…

---

<div class="post-metadata">

**Author:** ![Jake.Caron](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/jake.caron/32/1841_2.png) [@Jake.Caron](https://phaser.discourse.group/u/Jake.Caron)\
**Post date:** [April 16, 2019, 2:00pm UTC](https://phaser.discourse.group/t/drawing-masking-over-textures-and-creating-a-new-texture/2113/3 "2019-04-16T14:00:42Z")

</div>

Thanks hcaker, it doesn’t exactly get me to where I need to be, but I do appreciate your help!

I think my main thing to solve right now is how do I update an existing texture?
