Panagiotinos Posted December 11, 2018 Share Posted December 11, 2018 I am using PIXIJS Canvas Renderer and trying to apply a graphics polygon as mask in a sprite. When add graphics polygon as sprite.mask, i am getting blank canvas. Am i missing something or its just stupid idea? JSFiddle code: https://jsfiddle.net/Lk2fjmn3/8/ Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 11, 2018 Share Posted December 11, 2018 CanvasRenderer masking is based on HTML Canvas clip() method, it does not work with strokes (lineStyle), it works only with fills. So far, no one made a workaround for it that can be put in pixiJS Panagiotinos 1 Quote Link to comment Share on other sites More sharing options...
Panagiotinos Posted December 11, 2018 Author Share Posted December 11, 2018 Thank you a lot for the fast response, I will try to find another way to mask my sprite 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.