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

Oval radial gradients are broken #17

Open
jtothebell opened this issue Feb 24, 2014 · 0 comments
Open

Oval radial gradients are broken #17

jtothebell opened this issue Feb 24, 2014 · 0 comments

Comments

@jtothebell
Copy link

I have a couple swfs that use oval radial gradients, and they don't render properly. Here are a couple screen shots from SwiffDiff:

This is the SwiffCore rendering
screen shot 2014-02-24 at 2 57 42 pm

This is the flash rendering
screen shot 2014-02-24 at 2 57 55 pm

In my limited monkeying around, I discovered that if I switch line 531 of SwiffRenderer.m to use the AffineTransform's "c" instead of its "a" I get a circular gradient that is roughly the right size. I've no idea if that is just coincidence or not. The cirular radial gradients I tested had identical "a" and "d" values, but default values for "b" and "c".

If its helpful, the swf I used to take the screenshots can be downloaded here: https://dl.dropboxusercontent.com/u/4009158/testSwf/ovalGradientTest.swf

Thanks for your work on this project!

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

1 participant