Jump to content

Shape blending - background showing through


Recommended Posts

Hey Everyone, 

  I am very new to Pixi and graphics programming in general... so I apologize in advance if this is elementary.  But I am struggling to understand what is going on.  I the 'stage' which is a PIXI.Container and to that, I am adding a "bgGraphics" (PIXI.Graphics) container where I am adding a grid pattern across the UI.  Then I am adding another glyph (PIXI.Graphics) where I am drawing this using native shapes (right now just a rounded rectangle).

  All was moving along great until I put to two together.  See below



So I was thinking that if I drew the grid, then the rectangle, then the rectangle would "draw over" but they seem to be blending.  I did stumble across blendMode but the description in the API docs didn't seem to help any.  I am attempting to manually set the zOrder (grid to 5, rectangle to 10) but that didn't help.  

Can anyone point me in the right direction?  I'm at a total loss at this point.  


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.

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