Jump to content

PIXI v3: Game background color for Game?


datvm
 Share

Recommended Posts

renderer.backgroundColor = 0xFFFFFF;

There doesn't seem to be a `backgroundColor` property on the Canvas or WebGL renderer object. 

(There is a private `_backgroundColor` property but setting it doesn't seem to do anything.)

Link to comment
Share on other sites

  • 7 months later...
  • 11 months later...

I was about to ask how to make the background color look like a mixed of colors, such as gradient color or some kind of background color like that of Circle Push Game. Then I fiddled with my code and I found if I set the renderer's backgroundColor to any color  I can now use a gradient color in the background, weird.

I am still curious how to make the background like that of Circle Push Game though. Hope someone can shed some light for me.

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...