kingzee Posted May 24, 2017 Share Posted May 24, 2017 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.. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 24, 2017 Share Posted May 24, 2017 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.