Jump to content

Bug: Graphic.generateTexture TilingSpriteClass instance


mrBRC
 Share

Recommended Posts

using Graphic.generateTexture() into a new TilingSprite instance yields gapping between the tiling.

It isn't really a pressing issue for me though, because I don't really intend to tile a solid color (I'm not really sure anyone would).. At the same time. I haven't really explored all of what the graphic can be used for.

the code went something like the following: 

Graphic.beginFill(..values..)Graphic.drawRect(..values..)Graphic.EndFill()new PIXI.TilingSprite(Graphic.generateTexture(true|false), ..values..)

of course  I tried a variety of values and set the true|false on the powers of two parameter - to no avail.. the gap seemed larger will smaller drawRect values.. 

reviewing and haphazardly modifying the properties of the TilingSprite didn't affect the gapping either. though.. it did seem like some of the properties I was setting were disregarded or overwritten within an instant.. 



 

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