# Equivalent (PShape?) to Java2D Area subtract

**URL:** <https://discourse.processing.org/t/equivalent-pshape-to-java2d-area-subtract/36559>\
**Category:** Beginners\
**Created:** [April 23, 2022, 11:06pm UTC](https://discourse.processing.org/t/equivalent-pshape-to-java2d-area-subtract/36559 "2022-04-23T23:06:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![micycle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micycle/32/201_2.png) [@micycle](https://discourse.processing.org/u/micycle)\
**Post date:** [April 24, 2022, 9:06am UTC](https://discourse.processing.org/t/equivalent-pshape-to-java2d-area-subtract/36559/4 "2022-04-24T09:06:27Z")

</div>

There’s not really any relationship between `PShape` and `awt.Shape`.

You can use the [Processing Geometry Suite](https://discourse.processing.org/t/processing-geometry-suite/29924) library to perform 2D boolean operations (addition, subtraction, intersection, etc.) on PShapes **directly**.

[![](https://raw.githubusercontent.com/micycle1/PGS/master/resources/boolean/subtract.gif) ](https://raw.githubusercontent.com/micycle1/PGS/master/resources/boolean/subtract.gif)

---

_[View the full topic](https://discourse.processing.org/t/equivalent-pshape-to-java2d-area-subtract/36559)._
