Jump to content

Cannot use filters anymore in PIXI v7


trych
 Share

Recommended Posts

Hi there,

I have a small pixi.js setup where I apply a Pixelate filter. I am now trying to upgrade this to PIXI v7.x, but get an error that I don't understand.

Here is the line that gives me the issue:

const pixelateFilter = new PIXI.filters.PixelateFilter(1);

I get this error:

Uncaught TypeError: Class constructor Mt cannot be invoked without 'new'
    at new n (PixelateFilter.ts:25:9)
    at (Index):20:30

I have no idea what to do and the v7 Breaking changes section on GitHub does not seem to mention filters either. How do I need to change the syntax to make it work in PIXI v7.x ?

Thanks!

Link to comment
Share on other sites

  • 1 month later...
  • 7 months later...

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