# Event called when canvas is resized

**URL:** https://discourse.processing.org/t/event-called-when-canvas-is-resized/6643
**Category:** Processing
**Created:** [December 16, 2018, 1:40am UTC](https://discourse.processing.org/t/event-called-when-canvas-is-resized/6643 "2018-12-16T01:40:48Z")
**Posts on this page:** 1
**Showing post:** 8

<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: [December 18, 2018, 5:02am UTC](https://discourse.processing.org/t/event-called-when-canvas-is-resized/6643/8 "2018-12-18T05:02:08Z")

</div>

Hi @Sarah! Here’s a sketch I’ve been working w/ many months ago. 👷‍♂️  
It’s about creating a class callback which triggers every time the canvas resizes. 🤖  
It’s still experimental. 👨‍🔬 Yet to finish it 💯% . But it’s runnable already: 🏃‍♂️

> <https://gist.github.com/GoToLoop/1d1eb18f468a7d5758469707276b6ea1>

---

_[View the full topic](https://discourse.processing.org/t/event-called-when-canvas-is-resized/6643)._
