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

FEATURE: MorphShape support #1

Open
iccir opened this issue Jan 1, 2012 · 0 comments
Open

FEATURE: MorphShape support #1

iccir opened this issue Jan 1, 2012 · 0 comments

Comments

@iccir
Copy link
Member

iccir commented Jan 1, 2012

Implement support for morph shapes.

• Add SwiffMorphShapeDefinition class
• Add -[SwiffMovie morphShapeDefinitionWithLibraryID:]
• When rendering, use -[SwiffPlacedObject ratio] to determine the morph progress

Morph shape definitions use several "morph" variants of existing data types:
MORPHFILLSTYLEARRAY, MORPHLINESTYLEARRAY, MORPHFILLSTYLE, MORPHLINESTYLE, MORPHGRADIENT, MORPHGRADRECORD

One approach is to mirror these with SwiffMorphLineStyle, SwiffMorphFillStyle, and SwiffMorphGradient classes. Another approach is keeping all of the existing data structures and have two path arrays on SwiffMorphShapeDefinition (one for -startingPaths, one for -endingPaths)

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