# HELP! I want to change backgroundColor by tweens

**URL:** <https://phaser.discourse.group/t/help-i-want-to-change-backgroundcolor-by-tweens/7233>\
**Category:** Phaser 3\
**Created:** [August 20, 2020, 9:03pm UTC](https://phaser.discourse.group/t/help-i-want-to-change-backgroundcolor-by-tweens/7233 "2020-08-20T21:03:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![songyuki](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@songyuki](https://phaser.discourse.group/u/songyuki)\
**Post date:** [August 20, 2020, 9:03pm UTC](https://phaser.discourse.group/t/help-i-want-to-change-backgroundcolor-by-tweens/7233/1 "2020-08-20T21:03:54Z")

</div>

I want to change backgroundColor by tweens, but i dont know how to code,please,

---

<div class="post-metadata">

**Author:** ![Thyebe](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/thyebe/32/3799_2.png) [@Thyebe](https://phaser.discourse.group/u/Thyebe)\
**Post date:** [August 21, 2020, 1:31am UTC](https://phaser.discourse.group/t/help-i-want-to-change-backgroundcolor-by-tweens/7233/2 "2020-08-21T01:31:03Z")

</div>

Have a look at this link. I think it is what you are looking for.

> **[Phaser - Examples - Tint Tween](https://www.phaser.io/examples/v3/view/tweens/tint-tween)**
>
> Desktop and Mobile HTML5 game framework. A fast, free and fun open source framework for Canvas and WebGL powered browser games.

---

<div class="post-metadata">

**Author:** ![Thyebe](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/thyebe/32/3799_2.png) [@Thyebe](https://phaser.discourse.group/u/Thyebe)\
**Post date:** [August 21, 2020, 4:21am UTC](https://phaser.discourse.group/t/help-i-want-to-change-backgroundcolor-by-tweens/7233/3 "2020-08-21T04:21:22Z")

</div>

If the problem is the backgroundcolor of the game, the only way to change it is changing the backgroundColor of the main camera. Like this:

```javascript
this.cameras.main.setBackgroundColor(0xbababa);
```
