# Color4 is showing an error on scene

**URL:** <https://forum.babylonjs.com/t/color4-is-showing-an-error-on-scene/24765>\
**Category:** Questions\
**Created:** [October 22, 2021, 12:44pm UTC](https://forum.babylonjs.com/t/color4-is-showing-an-error-on-scene/24765 "2021-10-22T12:44:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![macleodjb](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/macleodjb/32/18459_2.png) [@macleodjb](https://forum.babylonjs.com/u/macleodjb)\
**Post date:** [October 22, 2021, 12:44pm UTC](https://forum.babylonjs.com/t/color4-is-showing-an-error-on-scene/24765/1 "2021-10-22T12:44:43Z")

</div>

Hi Guys, I’m having an issue where vs code is giving me an error message on the following lines. It is saying

“ **Type ‘Color4’ is missing the following properties from type ‘Scene’: \_tempPickingRay, \_cachedRayForTransform, \_pickWithRayInverseMatrix, \_internalPick, and 554 more** ”

```auto
// create a basic BJS Scene object
this._scene = new BABYLON.Scene(this._engine);
//set the background color
this._scene = new BABYLON.Color4(0,0,0,0);

```

I’m not sure what’s up. Trying to get my education on babylon

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [October 22, 2021, 12:56pm UTC](https://forum.babylonjs.com/t/color4-is-showing-an-error-on-scene/24765/2 "2021-10-22T12:56:31Z")

</div>

scene is not a color element, but its property [clearColor](https://doc.babylonjs.com/typedoc/classes/babylon.scene#clearcolor) 😉  
`this._scene.clearColor = new BABYLON.Color4(0,0,0,0);`

---

<div class="post-metadata">

**Author:** ![macleodjb](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/macleodjb/32/18459_2.png) [@macleodjb](https://forum.babylonjs.com/u/macleodjb)\
**Post date:** [October 22, 2021, 1:00pm UTC](https://forum.babylonjs.com/t/color4-is-showing-an-error-on-scene/24765/3 "2021-10-22T13:00:21Z")

</div>

yes, thank you. Couldn’t see the forest between the trees
