Jump to content

Container background color without graphics?


Recommended Posts

2 minutes ago, themoonrat said:

A Container is nothing but a collection of other display objects, so cannot be visually represented itself. You need a Graphic or a Sprite (both of which inherit from Container) to even give the container dimensions in the first place

Thank you for the reply.

I'm looking at displaying over 10.000 text 'nodes', each with the same background color. Will each node exist of a smaller container with a graphic + the text that I want to display?  Does this seem like a correct way to do this? Will having a graphic for every text node not affect performance? Since I am effectively doubling my object count then?


Kind regards,


Link to comment
Share on other sites

2 hours ago, ivan.popelyshev said:

set width/height of PIXI.Sprite  with PIXI.Texture.WHITE

Tried this out but wasn't really what I'm looking for (or I'm missing something).

Decided to try the graphic with text as a child. Will see how it goes with performance.


Thanks in any case

Link to comment
Share on other sites

  • 5 weeks later...

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.

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.


  • Recently Browsing   0 members

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