Jump to content

Is PIXI force us to use PIXI.Application instead PIXI.Renderer ?


Azern
 Share

Recommended Posts

I have some trouble that I don't know what happen
I just want to change the background color of my renderer here
 

var webGLRender = new PIXI.Renderer({
antialias:true,
width:300,
height:400,
backgroundColor:0xf0f0fe})

as you see, the color there is not black, it's some grayish. But when I see the page, it's just black. The screen size is correct, only the color that's not working.

I've also tried using option as _backgroundColorRgba  and _backgroundColorString but still not working.
 

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