# Tinting a shape in p5js isn't working, how could I tint it then?

**URL:** <https://discourse.processing.org/t/tinting-a-shape-in-p5js-isnt-working-how-could-i-tint-it-then/24550>\
**Category:** Coding Questions\
**Created:** [October 12, 2020, 3:16pm UTC](https://discourse.processing.org/t/tinting-a-shape-in-p5js-isnt-working-how-could-i-tint-it-then/24550 "2020-10-12T15:16:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![olaf000olaf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/olaf000olaf/32/11295_2.png) [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Post date:** [October 12, 2020, 3:16pm UTC](https://discourse.processing.org/t/tinting-a-shape-in-p5js-isnt-working-how-could-i-tint-it-then/24550/1 "2020-10-12T15:16:57Z")

</div>

I did a little bit of processing and now in p5js I’m trying to tint a shape using tint(); but it won’t work, how should I tint it?

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [October 12, 2020, 7:56pm UTC](https://discourse.processing.org/t/tinting-a-shape-in-p5js-isnt-working-how-could-i-tint-it-then/24550/2 "2020-10-12T19:56:17Z")

</div>

Hello,

I gave this a try…

I looked into the references for tint() and then texture() on the _[https://p5js.org/](https://p5js.org/)_ site.

And then the examples…

I was able to tint an image and then use that to texture a box().

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/680c99eef700444e5bcc20f78941154803648573.png)

There are other options to color a shape:  
_[https://p5js.org/reference/#group-Color](https://p5js.org/reference/#group-Color)_

`:)`
