musictheory/SwiffCore

FEATURE: MorphShape support

iccir opened this issue · 0 comments

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)