# screenX screenY equivalent in p5.js

**URL:** https://discourse.processing.org/t/screenx-screeny-equivalent-in-p5-js/10581
**Category:** Coding Questions
**Created:** [April 23, 2019, 7:48pm UTC](https://discourse.processing.org/t/screenx-screeny-equivalent-in-p5-js/10581 "2019-04-23T19:48:05Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![bohnacker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/bohnacker/32/5868_2.png) [@bohnacker](https://discourse.processing.org/u/bohnacker)
#### Post date: [July 19, 2019, 2:18pm UTC](https://discourse.processing.org/t/screenx-screeny-equivalent-in-p5-js/10581/5 "2019-07-19T14:18:52Z")

</div>

I’ve seen that there are many others with the same problem. So I’ve decided to build a small library that adds this functionality to p5js.

You’ll find the library here:

> **[bohnacker/p5js-screenPosition](https://github.com/bohnacker/p5js-screenPosition)**
>
> This function provides a solution to the missing screenX and screenY functions in p5.js. See https://github.com/processing/p5.js/issues/1553 for the discussion. - bohnacker/p5js-screenPosition

And an example of how it’s used here:  
[https://editor.p5js.org/bohnacker/sketches/nUk3bVW7b](https://editor.p5js.org/bohnacker/sketches/nUk3bVW7b)

---

_[View the full topic](https://discourse.processing.org/t/screenx-screeny-equivalent-in-p5-js/10581)._
