Sign in to follow this  
cDecheva

PIXI beginTextureFill issue

Recommended Posts

Hi!

I need to upgrade PIXI to the newest version, because I must support canvas, but I have this problem:

image.png.8b9e95025f474afa6b419ffabdfb9f6f.png

What is the alternative of beginTextureFill after PIXI 5.2.0?

What does object-based options mean?

 

 

Share this post


Link to post
Share on other sites

It means you have to pass an object :) We've changed API a bit.

You can see the IF here:

https://github.com/pixijs/pixi.js/blob/9ed7127bac9e696852a187e5403f313474f81365/packages/graphics/src/Graphics.ts#L709

beginTextureFill({ texture: myTexture });

Btw, now it works with canvas2d if you take dev version (https pixijs.download/dev/pixi-legacy.js), I made it a week ago or so: https://github.com/pixijs/pixi.js/pull/6367

Edited by ivan.popelyshev

Share this post


Link to post
Share on other sites
16 minutes ago, cDecheva said:

Thanks for the answer. I fixed it and with the version from dev works for both Canvas and WebGL.

I still have one warning :

image.thumb.png.1c915e52e7c83d631af78d9ac7f96072.png

How can I fix it?

Use not-minified js file, place a breakpoint in a deprecation, figure out where is it called from, post an issue or Pull Request in https://github.com/pixijs/pixi.js

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.