# Tip for resize app window while executing?

**URL:** <https://discourse.processing.org/t/tip-for-resize-app-window-while-executing/5513>\
**Category:** Processing\
**Created:** [November 13, 2018, 10:52pm UTC](https://discourse.processing.org/t/tip-for-resize-app-window-while-executing/5513 "2018-11-13T22:52:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xxssafirex](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/xxssafirex/32/2353_2.png) [@Xxssafirex](https://discourse.processing.org/u/Xxssafirex)\
**Post date:** [November 13, 2018, 10:52pm UTC](https://discourse.processing.org/t/tip-for-resize-app-window-while-executing/5513/1 "2018-11-13T22:52:36Z")

</div>

i was just wondering if there was some functions enabling the modification of the size of the window once its executing (or some way to proceed)

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [November 13, 2018, 11:03pm UTC](https://discourse.processing.org/t/tip-for-resize-app-window-while-executing/5513/2 "2018-11-13T23:03:02Z")

</div>

Use `getSurface().setSize()`: 📺

> [@Help with text and video](https://discourse.processing.org/t/help-with-text-and-video/2104/9):
>
> /\*\* \* Hacked Movie isPlaying() (v1.0) \* GoToLoop (2018/Jul/28) \* Discourse.Processing.org/t/help-with-text-and-video/2104/9 \*/ import processing.video.Movie; Movie vid; void setup() { frameRate(30); textSize(050); textAlign(CENTER, BASELINE); fill(#FFFF00); vid = new Movie(this, "transit.mov") { @Override public boolean hasBufferSink() { return playing; } }; vid.play(); while (vid.width == 0 | vid.height == 0) delay(10); getSurface().setSize(vid.width, v…
