# Win.color turns online experiment screen black

**URL:** <https://discourse.psychopy.org/t/win-color-turns-online-experiment-screen-black/38687>\
**Category:** Online experiments\
**Created:** [February 16, 2024, 3:42pm UTC](https://discourse.psychopy.org/t/win-color-turns-online-experiment-screen-black/38687 "2024-02-16T15:42:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phonology\_Reading\_La](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/phonology_reading_la/32/36472_2.png) [@Phonology\_Reading\_La](https://discourse.psychopy.org/u/Phonology_Reading_La)\
**Post date:** [February 16, 2024, 3:42pm UTC](https://discourse.psychopy.org/t/win-color-turns-online-experiment-screen-black/38687/1 "2024-02-16T15:42:29Z")

</div>

I have issues with using “win.color = ANY\_COLOR”, specifically in online experiments. It immediately turns the screen black even when the color is meant to be set to white, lightgray, or anything else. The second I remove the part of the code responsible for changing colors the experiment runs as normal but at the color change step it just defaults to black. It is one line of code making the difference apparently.

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 16, 2024, 4:25pm UTC](https://discourse.psychopy.org/t/win-color-turns-online-experiment-screen-black/38687/2 "2024-02-16T16:25:44Z")

</div>

Try

win.color = new util.color([1,1,-1]);

in a Both component or define your colours as per my Crib Sheet

---

<div class="post-metadata">

**Author:** ![Phonology\_Reading\_La](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/phonology_reading_la/32/36472_2.png) [@Phonology\_Reading\_La](https://discourse.psychopy.org/u/Phonology_Reading_La)\
**Post date:** [February 19, 2024, 4:13pm UTC](https://discourse.psychopy.org/t/win-color-turns-online-experiment-screen-black/38687/3 "2024-02-19T16:13:25Z")

</div>

I changed the color configuration according to your crib sheet and it works. However, it only works on computers other than my M1 2020 Macbook Pro. I have looked for a solution but there doesn’t seem to be one according to forums: [Can’t run experiments on M1 2020 Macbook Pro](https://discourse.psychopy.org/t/cant-run-experiments-on-m1-2020-macbook-pro/28833)

Would you happen to know how I could approach this issue? Thank you!
