<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!-- <!DOCTYPE Movie SYSTEM "dtd/RVML.dtd"> --> <Movie version='6' width='500' height='500' rate='12' backgroundColor='rgb(255, 255, 255)' compressed='Yes' xmlns="http://www.kineticfusion.org/RVML/2.0"> <Title> Shape Transform Examples </Title> <Desc> Illustrates how to create shape components using static transformations. The small crescent image is rotated and translated across the shape using a sequence of nested ShapeTransform elements. </Desc> <Definitions> <Shape id='Background' bounds='auto'> <FillStyles> <ColorFill index='1' color='yellow' /> </FillStyles> <LineStyles> <LineStyle index='1' width='1.0' color='pink' /> </LineStyles> <Edges> <Move x='0' y='0' /> <SetStyle line='1' mainFill='1'/> <Rect width="500" height="500"/> <Move x='250' y='0' /> <SetStyle mainFill='0'/> <Line x='250' y='500' /> <Move x='0' y='250' /> <Line x='500' y='250' /> </Edges> </Shape> <Shape id='Box' bounds='auto'> <LineStyles> <LineStyle index='1' width="2" color='blue' /> <LineStyle index='2' width="2" color='green' /> <LineStyle index='3' width="2" color='purple' /> </LineStyles> <FillStyles> <ColorFill index='1' color='red' /> </FillStyles> <Edges> <SetStyle mainFill='1' line='1'/> <!-- Little cresent filled with red--> <Path d="M77.5,87.4c6.7,13-7.6,15.1-7.6,15.1 s12.6,13,21.2,9.1 c5.9-2.7,3.7-15.4-2.8-19.9 S77.5,87.4,77.5,87.4z"/> <!-- Move to -125, -125 - moved back in Place command --> <ShapeTransform translateX='-125' translateY='-125'> <ShapeTransform rotate='30' > <SetStyle line='2'/> <Move x='0' y='0' /> <Line isRelative='Yes' x='250' /> <Line isRelative='Yes' y='250' /> <Line isRelative='Yes' x='-250' /> <Line isRelative='Yes' y='-250' /> <!-- Little cresent filled with background--> <Path d="M77.5,87.4c6.7,13-7.6,15.1-7.6,15.1 s12.6,13,21.2,9.1 c5.9-2.7,3.7-15.4-2.8-19.9 S77.5,87.4,77.5,87.4z"/> </ShapeTransform> <!-- Move to 125, 125 - moved to 250, 250 in Place command --> <ShapeTransform translateX='250' translateY='250'> <ShapeTransform rotate='60' > <SetStyle line='3'/> <Move x='0' y='0' /> <Line isRelative='Yes' x='250' /> <Line isRelative='Yes' y='250' /> <Line isRelative='Yes' x='-250' /> <Line isRelative='Yes' y='-250' /> <!-- Little cresent filled with background--> <Path d="M77.5,87.4c6.7,13-7.6,15.1-7.6,15.1 s12.6,13,21.2,9.1 c5.9-2.7,3.7-15.4-2.8-19.9 S77.5,87.4,77.5,87.4z"/> </ShapeTransform> </ShapeTransform> </ShapeTransform> </Edges> </Shape> </Definitions> <Timeline> <Frame> <Place name='Background' depth='1'/> <Place name='Box' depth='2' x='125' y='125'/> </Frame> </Timeline> </Movie>