Jump to content

Does lineStyle have any effect on a mask in PIXI v4?


Recommended Posts

Assume I have a circle mask for my stage, coded as below. 


const RADIUS = 200;
const mask = new PIXI.Graphics();
mask.lineStyle(3, 0xB2112D);
mask.drawCircle(RADIUS, RADIUS, RADIUS);

When I set the mask of another container in stage to this mask, I don't see any line around the edges. Is it possible to have border line effect in masks? What should I do if I want to outline the mask area? Currently I just put another Graphics object with a larger radius behind the masked container but this is just a work around.

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