# How to make a 2d Zoom and Pan

**URL:** <https://discourse.processing.org/t/how-to-make-a-2d-zoom-and-pan/1179>\
**Category:** Coding Questions\
**Created:** [June 23, 2018, 9:38am UTC](https://discourse.processing.org/t/how-to-make-a-2d-zoom-and-pan/1179 "2018-06-23T09:38:00Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![scudly](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/scudly/32/5597_2.png) [@scudly](https://discourse.processing.org/u/scudly)\
**Post date:** [February 15, 2019, 5:02am UTC](https://discourse.processing.org/t/how-to-make-a-2d-zoom-and-pan/1179/10 "2019-02-15T05:02:40Z")

</div>

See [https://redd.it/aecgdp](https://redd.it/aecgdp) for another example that includes zooming, panning, and rotating. Drag up and down the left edge to zoom, and across the bottom of the window to rotate.

---

_[View the full topic](https://discourse.processing.org/t/how-to-make-a-2d-zoom-and-pan/1179)._
