-
Notifications
You must be signed in to change notification settings - Fork 72
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
Stroke getting cut off #100
Comments
I've run into this issue in flash before when attempting to position MovieClips that have a stroke applied. The fun part is that when you ask the Sprite/MovieClip for it's width and height it returns a value that does not include the stroke. Instead of figuring out how to get the appropriate width and height we just killed the stroke and used shapes to fake it. This is obviously not ideal, but when you don't have time to fix it, hack it, right? I think the solution lies in asking the shape itself for it's stroke weight then padding the clip with extra space. |
We may be able to solve this issue by updating Flump's This isn't something I have the time to dive into at the moment but I'm happy to assist if you're interested in taking it on. It should be fairly straight-forward. |
Yes, if stroke detection is added to SwfTexture.hasPotentiallySizeAlteringFilters(), I believe that would take care of it. |
I'm also having this issue. Can anyone recommend a solution (even if temporary)? |
I recommended one two messages up from yours :) To hack this in temporarily, you could try modifying |
Is this hack implemented, also for flipbooks? Because those get cropped too with thick borders. |
Not implemented currently - it should be straight-forward? I'm not able to On Wed, Jul 30, 2014 at 1:02 AM, Mark Knol [email protected] wrote:
|
Hi,
Forgive me if I missed something, but I have been playing around with Flump and noticed it sometimes cuts off part of my sprite's stroke.
I.e. here is a simple sprite in Flash:
And here is what it looks like in Flump:
You can see that a pixel or two of the bottom and right edges have been shaved off, making it not round.
This is of course just a test sprite, I'm testing Flump out to see if I can use it to enable a Flash-based vector asset-creation workflow in a Starling mobile game I'm working on.
Any help would be appreciated, thanks!
The text was updated successfully, but these errors were encountered: