# Mask from polygon

**URL:** <https://discourse.processing.org/t/mask-from-polygon/28797>\
**Category:** Processing\
**Created:** [March 24, 2021, 3:03pm UTC](https://discourse.processing.org/t/mask-from-polygon/28797 "2021-03-24T15:03:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dave307](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@dave307](https://discourse.processing.org/u/dave307)\
**Post date:** [March 24, 2021, 3:03pm UTC](https://discourse.processing.org/t/mask-from-polygon/28797/1 "2021-03-24T15:03:06Z")

</div>

is it possible to create a mask from polygons made up of vertexes in a way that when it draws a new shape it will not draw over the mask, which I guess would be inverted from how a mask would normally be?

---

<div class="post-metadata">

**Author:** ![tony](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tony/32/949_2.png) [@tony](https://discourse.processing.org/u/tony)\
**Post date:** [March 24, 2021, 4:56pm UTC](https://discourse.processing.org/t/mask-from-polygon/28797/2 "2021-03-24T16:56:25Z")

</div>

Could you post a drawing or something that gives a better picture of what you want?
