# Textures with beginContour

**URL:** <https://discourse.processing.org/t/textures-with-begincontour/16206>\
**Category:** Coding Questions\
**Created:** [December 7, 2019, 7:38am UTC](https://discourse.processing.org/t/textures-with-begincontour/16206 "2019-12-07T07:38:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fin](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@Fin](https://discourse.processing.org/u/Fin)\
**Post date:** [December 7, 2019, 7:38am UTC](https://discourse.processing.org/t/textures-with-begincontour/16206/1 "2019-12-07T07:38:37Z")

</div>

I created a plane with a texture applied and it worked fine. I tried adding a hole in the centre using the beginContour(); function, but doing this however seemed to frick up the textures and I’m not sure how to fix them. Any help would be appreciated

> PImage wall;
> 
> void setup() {  
> size(640, 360, P3D);  
> lights();  
> wall = loadImage(“wallTexture1.jpg”);  
> textureMode(NORMAL);  
> }
> 
> void draw() {  
> background(0);
> 
> pushMatrix();  
> beginShape();  
> texture(wall);  
> textureWrap(REPEAT);  
> translate(0, 0, -2325);  
> vertex(-100, -100, 0, 0);  
> vertex(2000, -100, 2, 0);  
> vertex(2000, 1000, 2, 2);  
> vertex(-100, 1000, 0, 2);  
> beginContour(); //without the contour it looks fine  
> vertex(215, 100, 0, 0);  
> vertex(215, 500, 2, 0);  
> vertex(435, 500, 2, 2);  
> vertex(435, 100, 0, 2);  
> endContour();  
> endShape();  
> popMatrix();  
> }
