# Change background Color for vtkRenderWindowWithControlBar

**URL:** https://discourse.vtk.org/t/change-background-color-for-vtkrenderwindowwithcontrolbar/5764
**Category:** Web
**Created:** [May 12, 2021, 11:20am UTC](https://discourse.vtk.org/t/change-background-color-for-vtkrenderwindowwithcontrolbar/5764 "2021-05-12T11:20:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shrikant](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@shrikant](https://discourse.vtk.org/u/shrikant)
#### Post date: [May 12, 2021, 11:20am UTC](https://discourse.vtk.org/t/change-background-color-for-vtkrenderwindowwithcontrolbar/5764/1 "2021-05-12T11:20:51Z")

</div>

Hi, I need help to change background color of the vtkRenderWindowWithControlBar.  
I saw vtkFullScreenRenderWindow has background property to set and exploring it but if somebody knows to change background color for vtkFullScreenRenderWindow then please help. Thanks.

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [May 12, 2021, 4:08pm UTC](https://discourse.vtk.org/t/change-background-color-for-vtkrenderwindowwithcontrolbar/5764/2 "2021-05-12T16:08:59Z")

</div>

`rwcb.getRenderer().setBackground(0.5, 0, 1);`

---

<div class="post-metadata">

### Author: ![shrikant](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@shrikant](https://discourse.vtk.org/u/shrikant)
#### Post date: [May 13, 2021, 3:18am UTC](https://discourse.vtk.org/t/change-background-color-for-vtkrenderwindowwithcontrolbar/5764/3 "2021-05-13T03:18:36Z")

</div>

Thank you .
