Jump to content

Background Color With Canvas?


polkapunk
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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