# How do i tile an image on to a shape

**URL:** <https://discourse.processing.org/t/how-do-i-tile-an-image-on-to-a-shape/665>\
**Category:** Project Guidance\
**Created:** [June 3, 2018, 5:55am UTC](https://discourse.processing.org/t/how-do-i-tile-an-image-on-to-a-shape/665 "2018-06-03T05:55:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grimtin10](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Post date:** [June 3, 2018, 5:55am UTC](https://discourse.processing.org/t/how-do-i-tile-an-image-on-to-a-shape/665/1 "2018-06-03T05:55:00Z")

</div>

So, i’m making a 3d renderer (because i can) and I want to be able to tile a texture on to a shape in the renderer. I am using the PShape (or whatever it’s called). How to I tile an image on to one shape?

-Grim

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [June 3, 2018, 9:43am UTC](https://discourse.processing.org/t/how-do-i-tile-an-image-on-to-a-shape/665/2 "2018-06-03T09:43:24Z")

</div>

Use :

```auto
PShape shape;
PImage img;

shape.setTexture(img);

```

---

<div class="post-metadata">

**Author:** ![Grimtin10](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Post date:** [June 3, 2018, 10:38pm UTC](https://discourse.processing.org/t/how-do-i-tile-an-image-on-to-a-shape/665/3 "2018-06-03T22:38:02Z")

</div>

That only puts it on ONCE, I want it TILED. MORE THAN ONCE.

---

<div class="post-metadata">

**Author:** ![dan850](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dan850](https://discourse.processing.org/u/dan850)\
**Post date:** [June 3, 2018, 11:26pm UTC](https://discourse.processing.org/t/how-do-i-tile-an-image-on-to-a-shape/665/4 "2018-06-03T23:26:30Z")

</div>

Hi @Grimtin10 Please show a little bit more courtesy. Can you post what you have coded so far so we can assist you with any errors please?

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [June 4, 2018, 9:43am UTC](https://discourse.processing.org/t/how-do-i-tile-an-image-on-to-a-shape/665/5 "2018-06-04T09:43:47Z")

</div>

Check this :

[https://processing.org/reference/textureWrap\_.html](https://processing.org/reference/textureWrap_.html)

---

<div class="post-metadata">

**Author:** ![Grimtin10](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Post date:** [June 8, 2018, 2:53am UTC](https://discourse.processing.org/t/how-do-i-tile-an-image-on-to-a-shape/665/6 "2018-06-08T02:53:43Z")

</div>

Ah, thanks. Good answer!
