Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird beginTextureFill results #114

Open
dholem opened this issue Jun 4, 2014 · 1 comment
Open

Weird beginTextureFill results #114

dholem opened this issue Jun 4, 2014 · 1 comment

Comments

@dholem
Copy link

dholem commented Jun 4, 2014

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:

starling-texturefillproblem

@IonSwitz
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants