# Full Screen with Hidings sliders

**URL:** <https://discourse.processing.org/t/full-screen-with-hidings-sliders/28249>\
**Category:** Coding Questions\
**Created:** [March 4, 2021, 9:22am UTC](https://discourse.processing.org/t/full-screen-with-hidings-sliders/28249 "2021-03-04T09:22:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mem](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Mem](https://discourse.processing.org/u/Mem)\
**Post date:** [March 4, 2021, 9:22am UTC](https://discourse.processing.org/t/full-screen-with-hidings-sliders/28249/1 "2021-03-04T09:22:16Z")

</div>

Hello,

I would like to use the function full screen fullscreen();  
Using sliders, checkboxs, inputs and buttons that will disappear when we are in a full screen mode.

So basically I can work with sliders and then go full screen so only the canvas is visible

Any suggestions please

Thank you

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [March 4, 2021, 10:04am UTC](https://discourse.processing.org/t/full-screen-with-hidings-sliders/28249/2 "2021-03-04T10:04:03Z")

</div>

you can make a variable

it is boolean named showSliders

initially it is true. Define it before setup().

Evaluate it in draw()

```auto
if(showSliders) {
    background(0);
    show sliders (screen A)
}else{
    background(0);
    show the other screen (screen B)
}

```

(in draw() nothing is allowed outside this if-clause, because either we are on one screen or the other)

**How to change the variable**

make a button on the slider screen “show” and when it’s clicked say `showSliders=false;`

in B for example when a key is pressed say `showSliders=true;`

---

<div class="post-metadata">

**Author:** ![BigBigRed](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@BigBigRed](https://discourse.processing.org/u/BigBigRed)\
**Post date:** [March 8, 2021, 6:08pm UTC](https://discourse.processing.org/t/full-screen-with-hidings-sliders/28249/3 "2021-03-08T18:08:16Z")

</div>

I think that you can get sliders to function even if they are beneath the lower edge of the canvas. Saw this after I made a mistake one time. I don’t know how this lower than the canvas manipulation will react when you engage full screen, but it be a path for you.
