# Mouse relative to Translations and Scale

**URL:** https://discourse.processing.org/t/mouse-relative-to-translations-and-scale/11976
**Category:** Coding Questions
**Created:** [June 10, 2019, 5:58pm UTC](https://discourse.processing.org/t/mouse-relative-to-translations-and-scale/11976 "2019-06-10T17:58:28Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [June 12, 2019, 6:29pm UTC](https://discourse.processing.org/t/mouse-relative-to-translations-and-scale/11976/3 "2019-06-12T18:29:57Z")

</div>

I don’t think p5.js has screenX.

You might be interested in this past thread:

- [screenX screenY equivalent in p5.js](https://discourse.processing.org/t/screenx-screeny-equivalent-in-p5-js/10581/4)
  - …in particular the link to [https://github.com/processing/p5.js/issues/1553](https://github.com/processing/p5.js/issues/1553)

…and possibly the approaches used in this Java library:

- [https://github.com/AlexPoupakis/mouse2DTransformations](https://github.com/AlexPoupakis/mouse2DTransformations)

---

_[View the full topic](https://discourse.processing.org/t/mouse-relative-to-translations-and-scale/11976)._
