Jump to content

How do I create a custom filter & mask shape?


kingzee
 Share

Recommended Posts

I'm trying to create an effect where a shape inverts the color of everything it covers.

Imagine two Container objects, one rendered behind the other, the one behind is the "main stage" with all the graphics, and the one in front of it contains my shape, I want that shape to invert the color of everything behind it on the first container, that shape is animated too.

I just used containers to explain what I want to do, while it is what I have in my current code, I'm open to any solutions, thanks.

 

P-S : Is there really no real-time chat anywhere? Irc, Discord, etc.. It's a shame such a widely use library doesn't have anywhere where to discuss and talk about everything pixijs related..

Link to comment
Share on other sites

There's a slack. I'll invite you.

I think it can be done with blendMode. If you read our conversation at 

in the end i specified the way to make blendMode with custom pixi.js version. If you succeed with that , you can just assign that blendMode to graphics. Give me your cod and then ill add that blendMode to official pixi-v4.That custom version "new PIXI.BlendMode" though is going to be introduced in v5.

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