# How do i set screen size

**URL:** <https://discourse.processing.org/t/how-do-i-set-screen-size/44683>\
**Category:** Beginners\
**Created:** [July 2, 2024, 2:02pm UTC](https://discourse.processing.org/t/how-do-i-set-screen-size/44683 "2024-07-02T14:02:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![theapplesguy2](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/theapplesguy2/32/19754_2.png) [@theapplesguy2](https://discourse.processing.org/u/theapplesguy2)\
**Post date:** [July 2, 2024, 2:02pm UTC](https://discourse.processing.org/t/how-do-i-set-screen-size/44683/1 "2024-07-02T14:02:58Z")

</div>

how do i set the screne size of my rendered thing (imagine a square on a 500x500 screen, but theres no set size so the screen gets as small as you can)

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [July 2, 2024, 2:21pm UTC](https://discourse.processing.org/t/how-do-i-set-screen-size/44683/2 "2024-07-02T14:21:38Z")

</div>

Hi @theapplesguy2 ,

Do you.mean this ?

> **[size() / Reference](https://processing.org/reference/size_.html)**
>
> Defines the dimension of the display window width and height in units of pixels. In a program that has the setup() function, the size() function must be the first line of code inside …

Cheers  
—mnse

---

<div class="post-metadata">

**Author:** ![theapplesguy2](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/theapplesguy2/32/19754_2.png) [@theapplesguy2](https://discourse.processing.org/u/theapplesguy2)\
**Post date:** [July 2, 2024, 2:37pm UTC](https://discourse.processing.org/t/how-do-i-set-screen-size/44683/3 "2024-07-02T14:37:18Z")

</div>

ah thank you very much
