musictheory/SwiffCore — Issue #1: FEATURE: MorphShape support
Author: iccir
Created: 2012-01-01 02:55:37+00:00
State: open

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)