Skip to content
This repository was archived by the owner on May 23, 2026. It is now read-only.
This repository was archived by the owner on May 23, 2026. It is now read-only.

Oval radial gradients are broken #17

Description

@jtothebell

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions