# Get new size of PShape after transform (shear)?

**URL:** <https://discourse.processing.org/t/get-new-size-of-pshape-after-transform-shear/18184>\
**Category:** Coding Questions\
**Created:** [February 27, 2020, 3:01pm UTC](https://discourse.processing.org/t/get-new-size-of-pshape-after-transform-shear/18184 "2020-02-27T15:01:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![snaders](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@snaders](https://discourse.processing.org/u/snaders)\
**Post date:** [March 2, 2020, 8:25am UTC](https://discourse.processing.org/t/get-new-size-of-pshape-after-transform-shear/18184/2 "2020-03-02T08:25:25Z")

</div>

Third question on this forum, third time no replies. Starting to think there **are** stupid questions after all 😉

Answering for people stumbling upon this question, wondering the same thing. I came a lot closer to a solution using the [geomerative library](http://www.ricardmarxer.com/geomerative/) by Richard Marxter. I set a transform matrix with shear and apply it to the shape. I can now compare the new width to the original width and scale accordingly before drawing the shape.

It doesn’t look like it’s 100% correct, not really sure why. Also have some trouble animating it nicely because the shear transform in Geomerative takes vectors instead of the ‘end situation’.

If someone has done something similar, or has some advice on how to do this correctly. Let me know.

---

_[View the full topic](https://discourse.processing.org/t/get-new-size-of-pshape-after-transform-shear/18184)._
