# Set background color in Phaser

I want to set a background color for my game.

I found this solution:

function create() {
this.cameras.main.setBackgroundColor("#d5d5d5");
}


but I want to be sure that there is not a more standard way to do this, because editing the camera's property means that the background would be different for another camera.

You can set the backgroundColor property of the GameConfig when you create a new Phaser.Game.
const config = {