# Get resized window size?

**URL:** https://discourse.processing.org/t/get-resized-window-size/30808
**Category:** Coding Questions
**Created:** [June 19, 2021, 10:48pm UTC](https://discourse.processing.org/t/get-resized-window-size/30808 "2021-06-19T22:48:26Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![th75](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@th75](https://discourse.processing.org/u/th75)
#### Post date: [June 19, 2021, 11:39pm UTC](https://discourse.processing.org/t/get-resized-window-size/30808/2 "2021-06-19T23:39:01Z")

</div>

hi,  
can you paste some code here?  
otherwise i checked, and after resize width and height values are correctly updated, but if you used it in setup() i guess you need to reinit some stuff  
so may be you can store those values in variables and check if some change occurs if(width != pWidth) to resize your noise map?

or you can try to catch the resized event as Micuat explain [in this post](https://discourse.processing.org/t/resize-event-for-sketch-without-draw-loop/29462/5)

it s a more elegant way to do that, ( above my understanding of java…)

---

_[View the full topic](https://discourse.processing.org/t/get-resized-window-size/30808)._
