# Built in constant: displayWidth and displayHeight

**URL:** https://discourse.processing.org/t/built-in-constant-displaywidth-and-displayheight/22404
**Category:** Processing
**Created:** [July 6, 2020, 12:11am UTC](https://discourse.processing.org/t/built-in-constant-displaywidth-and-displayheight/22404 "2020-07-06T00:11:38Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![SomeOne](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/someone/32/8639_2.png) [@SomeOne](https://discourse.processing.org/u/SomeOne)
#### Post date: [July 6, 2020, 1:02am UTC](https://discourse.processing.org/t/built-in-constant-displaywidth-and-displayheight/22404/3 "2020-07-06T01:02:31Z")

</div>

> [@RenanRabelo](#):
>
> Is there any method I can use to extract those constants with code?

This was covered a while back in [Setting size of display window to a percentage of screen size](https://discourse.processing.org/t/setting-size-of-display-window-to-a-percentage-of-screen-size/22228). If it’s deprecated then there’s a reason for it. During runtime width and height are you friends, you don’t have any use for displayWidth

---

_[View the full topic](https://discourse.processing.org/t/built-in-constant-displaywidth-and-displayheight/22404)._
