# Resize event for sketch without draw() loop

**URL:** <https://discourse.processing.org/t/resize-event-for-sketch-without-draw-loop/29462>\
**Category:** Coding Questions\
**Created:** [April 17, 2021, 11:26pm UTC](https://discourse.processing.org/t/resize-event-for-sketch-without-draw-loop/29462 "2021-04-17T23:26:32Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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 18, 2021, 10:00am UTC](https://discourse.processing.org/t/resize-event-for-sketch-without-draw-loop/29462/6 "2021-04-18T10:00:26Z")

</div>

What you’re looking to do is add a (renderer-dependent) stage/window resize **callback listener** , which should call Processing’s `redraw()` when prompted. See [Resizable window with constrained proportions](https://discourse.processing.org/t/resizable-window-with-constrained-proportions/7536) for FX2D and P2D examples.

---

_[View the full topic](https://discourse.processing.org/t/resize-event-for-sketch-without-draw-loop/29462)._
