# Why is contour not working here

**URL:** <https://discourse.processing.org/t/why-is-contour-not-working-here/22038>\
**Category:** Beginners\
**Created:** [June 21, 2020, 5:47pm UTC](https://discourse.processing.org/t/why-is-contour-not-working-here/22038 "2020-06-21T17:47:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![klap](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@klap](https://discourse.processing.org/u/klap)\
**Post date:** [June 21, 2020, 5:47pm UTC](https://discourse.processing.org/t/why-is-contour-not-working-here/22038/1 "2020-06-21T17:47:36Z")

</div>

why is contour not working here? I would expect to see a cutout.

```auto
size(100, 100);
background(0);
stroke(255);
strokeWeight(2);
line(33, 0, 85, 100);
noStroke();
fill(102);
beginShape();
vertex(10, 10);
vertex(10, 100);
vertex(100, 100);
vertex(100, 10);
beginContour();
vertex(15, 15);
vertex(15, 50-5);
vertex(50-5, 50-5);
vertex(50-5, 15);
endContour();
endShape();

```

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [June 21, 2020, 6:09pm UTC](https://discourse.processing.org/t/why-is-contour-not-working-here/22038/2 "2020-06-21T18:09:50Z")

</div>

vertices in contour have to be counter clockwise, or go in the opposite direction to your original shape.
