Open dholem opened 10 years ago
First of all I just wanted to say that I love this extension! I just started using it today and I'm blown away by the possibilities these tools offer.
I'm trying to use a texture to fill the circle and I'm getting strange results:
var shape:Shape = new Shape(); shape.graphics.beginTextureFill(Texture.fromEmbeddedAsset(myPortrait, false)); shape.graphics.drawCircle(100,100,100); shape.graphics.endFill(); shape.x = 25; shape.y = 25; addChild(shape);
I end up with this:
That is very odd, as I am assuming the "myPortrait" asset doesnt look like that? Is it a proper Power of Two texture? if not, try with POT textures. Is it an atlas? If it is, try without an atlas.
First of all I just wanted to say that I love this extension! I just started using it today and I'm blown away by the possibilities these tools offer.
I'm trying to use a texture to fill the circle and I'm getting strange results:
var shape:Shape = new Shape(); shape.graphics.beginTextureFill(Texture.fromEmbeddedAsset(myPortrait, false)); shape.graphics.drawCircle(100,100,100); shape.graphics.endFill(); shape.x = 25; shape.y = 25; addChild(shape);
I end up with this: