Jump to content

Background Color With Canvas?


Recommended Posts

I'm having trouble getting the background color to work in canvas mode. The background displays correctly as white if I do this:

var game = new Phaser.Game(640, 480, Phaser.AUTO, '', {create: create});function create() {  game.stage.backgroundColor = 0xffffff;}

But if I change Phaser.AUTO to Phaser.CANVAS, the background color is the default black. I'm using the latest version of Phaser (1.1.4). It's happening to me in both Firefox and Chrome.


Does anyone know if this is a bug? Or am I doing something wrong? Any help would be appreciated. Thanks!

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...