Jump to content

Text with masking


mariamdh
 Share

Recommended Posts

Hi,

I've created text in PIXI, and have masked it because I want to allow scrolling. I'm using the latest version of pixi (5.3.0).

However when the text loads with the mask, it appears differently on different browsers. I've attached an image for reference.

I've tested it using Edge, Firefox and Chrome and all 3 show the text masked differently. Please help me understand why this could happen.

1.thumb.jpg.7270413d2f625a18728b66ceaf2d86e9.jpg

Also, when I create a graphic for masking the text, the coordinates and size appear very different to how it functions as a mask.

In the image below, the white rectangle is the position and size of a graphic which is used for masking the text below it. As a graphic, the mask(white rectangle) appears small. However when applied to the text behind, it appears bigger and position also changes.

2.jpg.1b21c7360e43fa89b62e6a137ac0b6a4.jpg

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