# White flash on fullscreen

**URL:** <https://discourse.processing.org/t/white-flash-on-fullscreen/44654>\
**Category:** Coding Questions\
**Created:** [June 26, 2024, 4:54pm UTC](https://discourse.processing.org/t/white-flash-on-fullscreen/44654 "2024-06-26T16:54:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![larry](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@larry](https://discourse.processing.org/u/larry)\
**Post date:** [June 26, 2024, 4:54pm UTC](https://discourse.processing.org/t/white-flash-on-fullscreen/44654/1 "2024-06-26T16:54:07Z")

</div>

Hello  
Does anyone know if it is possible to remove the white screen that appears for the first at the start of fullscreen apps ? I am using processing in a live show and would like to launch the app during the show without seeing it.  
Thanks

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [June 26, 2024, 7:34pm UTC](https://discourse.processing.org/t/white-flash-on-fullscreen/44654/3 "2024-06-26T19:34:43Z")

</div>

Hello @larry,

I had similar issues recently but on fullscreen.

Try this out:

```auto
void setup()
  {
  println(hex(g.backgroundColor)); //Default background
  size(800, 800);  
 //fullScreen(); 
  background(0); // Set background color to match draw
  println(hex(g.backgroundColor));  
  }

void draw()
  {
  background(0);  
  // La la la
  }

```

I tried setting the background in _setup()_ to match the background in _draw()_ but still had the brief flash.

You could build Processing from the source code and change the default background color if you want to entertain that. I have actually modified the source code so it is possible.

It may vary for different PCs (OS, hardware, video card, etc.).

Also try a different renderer from the default to see what happens.

It is noticeable on my home PC but not on my work PC.

`:)`

---

<div class="post-metadata">

**Author:** ![larry](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@larry](https://discourse.processing.org/u/larry)\
**Post date:** [June 27, 2024, 9:19am UTC](https://discourse.processing.org/t/white-flash-on-fullscreen/44654/4 "2024-06-27T09:19:01Z")

</div>

Thanks for the suggestions, it seems like it’s very hard, maybe impossible, to remove. It is made worse in my case by the fact that I am loading a large csv file on startup and then increases the time that the white screen appears.

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [June 27, 2024, 9:45am UTC](https://discourse.processing.org/t/white-flash-on-fullscreen/44654/5 "2024-06-27T09:45:28Z")

</div>

Hello again!

> [@larry](#):
>
> it seems like it’s very hard, maybe impossible, to remove.

Hard but I won’t say it is impossible.

The location of default setting in source code from a quick search:

> <https://github.com/benfry/processing4/blob/main/core/src/processing/core/PGraphics.java#L493>

> <https://github.com/benfry/processing4/blob/main/build/README.md>

It was not easy for me to build the source code the first time but was much easier on subsequent efforts.

I may give it a try (change default background) this weekend and get back to you on this.

`:)`

---

<div class="post-metadata">

**Author:** ![larry](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@larry](https://discourse.processing.org/u/larry)\
**Post date:** [June 27, 2024, 10:52am UTC](https://discourse.processing.org/t/white-flash-on-fullscreen/44654/6 "2024-06-27T10:52:06Z")

</div>

Amazing! Thank you, I’m doing some pretty ugly workarounds at the moment using symphony and qlab.

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [July 10, 2024, 4:30am UTC](https://discourse.processing.org/t/white-flash-on-fullscreen/44654/7 "2024-07-10T04:30:03Z")

</div>

> [@larry](#):
>
> It is made worse in my case by the fact that I am loading a large csv file on startup and then increases the time that the white screen appears.

Consider using a thread() to load the file in the background:

> **[thread() / Reference](https://processing.org/reference/thread_.html)**
>
> Processing sketches follow a specific sequence of steps: setup() first, followed by draw() over and over and over again in a loop. A thread is also a series of steps with a beginning, a …

Set a flag when it is done and the use it in draw() when you are ready!

I have an example if requested.

`:)`
