<snapdata remixID="8510841"><project name="U1L3-Pinwheel" app="Snap! 5.1, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAABFJJREFUeAHt3E9ozgEcx/HvlvInNUv0WFNiLX/GxGrkoHCwg1rh4KK4ISUcXIVykZK4OUhJcXCTkhw0S2aa/AknfxpyIRfjeXimntRHz4H1+a7f835OT9+xz+PV2/PMRVPl1yN4IJAk0Jy0yywC4wIESAipAgSYys84AdJAqgABpvIzToA0kCpAgKn8jBMgDaQKEGAqP+MESAOpAgSYys84AdJAqgABpvIzToA0kCpAgKn8jBMgDaQKEGAqP+MESAOpAgSYys84AdJAqgABpvIzToA0kCpAgKn8jBMgDaQKEGAqP+MESAOpAgSYys84AdJAqgABpvIzToA0kCpAgKn8jBMgDaQKEGAqP+MESAOpAoUPcHToWSow4/UFChvg6MPf4Y0OPakJvBl4VHvOk8khUNgAZ8yeFQMnL0TlR3lcevDUxWhf2z051HkVNYGmIv8v+V/ff4qX94Zj6vdKLN66qfaH5snkEZgyeV7KxL2Sj49fxoeRF+Pvfs8GH8Srt6+j68nTmF9qi9KqJTFv9dKJG+M7/ZdAIT+C53R1xLIdfVF9B1y0uDM6elbE43NXY/j502hZsuC/wPjNEytQyACrRNV/cPQe2hlRrsS2I/tirGVafLl8J05198etS9cmVpHv9s8Chf4ZsKrybnAk2nqXx+0r12Pk4Nka1LfOubHh+P5YtW5N7cYTv0DhA/yT9Mzm3REjr2unH5VyTO9bHf0nDkapVKrdeeITKOxH8N8I1x/dG99/RVd9zOzriY4D22POys64f3fgb7+cm0Ggod4Bq57ndx2OsZuPYuON07FseZeBmIl6Ag31DliF2HLsQHyOsSi1zavnwtdMAg0XYHt7eyzc0x+tra0mYmbqCTTcR3AVo1wuR3Nzw/3dq9dB2tcaMsA0bYZFgLcBIeHgFCBApzZbIkCAQsLBKUCATm22RIAAhYSDU4AAndpsiQABCgkHpwABOrXZEgECFBIOTgECdGqzJQIEKCQcnAIE6NRmSwQIUEg4OAUI0KnNlggQoJBwcAoQoFObLREgQCHh4BQgQKc2WyJAgELCwSlAgE5ttkSAAIWEg1OAAJ3abIkAAQoJB6cAATq12RIBAhQSDk4BAnRqsyUCBCgkHJwCBOjUZksECFBIODgFCNCpzZYIEKCQcHAKEKBTmy0RIEAh4eAUIECnNlsiQIBCwsEpQIBObbZEgACFhINTgACd2myJAAEKCQenAAE6tdkSAQIUEg5OAQJ0arMlAgQoJBycAgTo1GZLBAhQSDg4BQjQqc2WCBCgkHBwChCgU5stESBAIeHgFCBApzZbIkCAQsLBKUCATm22RIAAhYSDU4AAndpsiQABCgkHpwABOrXZEgECFBIOTgECdGqzJQIEKCQcnAIE6NRmSwQIUEg4OAUI0KnNlggQoJBwcAoQoFObLREgQCHh4BQgQKc2WyJAgELCwSlAgE5ttkSAAIWEg1OAAJ3abInAT9/ZhijmHd7JAAAAAElFTkSuQmCC</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" volume="100" pan="0" lines="round" ternary="true" codify="false" inheritance="false" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAAD5RJREFUeAHt3U1oHFUcAPD3dmPph4otas1aL1rEY71ahJpsWloUvIjiN3gQlDRp/UApYv1AKEJNAh7qRasHtVJE6MU0ohdPIggeWk+emlgvnlopyc7439gmKY00lNjOZn8Lyc7OvN35v99b9r/vvZnZlNwIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBLhAYawxsP7hpx4YuqKoqEiDQJQK1Lqmnana4QJnKz3uK6a0dXg3hEyBAYE5AAp6jsFBxgVy0clnxGIVHgACBJQtIwEumUvD/FhjtHXhqbMPOG/9jPznnWrHYtpHe5o6RW/s3LrbNOgIECFRVQAKuast0Y1y52Feunv7qwM1bb1ik+rlIrUt6wKONgRdzTkdTPW9Z5DlWESBAoLICEnBlm6b7Aqu16jtzSneuXrXmyIe3bLv+IoE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VxeYHYOeKY1NwR9+WcoQYAAgWoLSMDVbh/RzQtMlat6zs4/tESAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGlCfwDu+8CPPHcTasAAAAASUVORK5CYII=</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="Sprite" idx="1" x="-69.35736750576461" y="62.70583194772888" heading="315.24675324675354" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="145,26,68,1" pen="tip" id="8"><costumes><list struct="atomic" id="9"></list></costumes><sounds><list struct="atomic" id="10"></list></sounds><blocks></blocks><variables></variables><scripts><script x="13" y="10"><block s="down"></block><block s="setColor"><color>145,26,68,1</color></block><block s="clear"></block><custom-block s="pinwheel, branches: %s size %s backup %s"><l>3</l><l>9</l><l>-19</l><comment w="90" collapsed="false">(You may experiment with the numbers) This makes a 3 branched pinwheel which has a side length of five. The backup affects the actual size of the inner triangle of the pinwheel.</comment></custom-block></script><script x="436.9999999999999" y="36.20000000000073"><block s="receiveGo"><comment w="90" collapsed="false">Just a kind of helpful tool for clearing the stage.</comment></block><block s="clear"></block></script><script x="11" y="197.20000000000005"><block s="down"></block><block s="setColor"><color>145,26,68,1</color></block><block s="clear"></block><custom-block s="pinwheel, branches: %s size %s backup %s"><l>4</l><l>7</l><l>-47</l><comment w="90" collapsed="false">(You may experiment with the numbers) This makes a 4 branched pinwheel which has a side length of 7. The backup affects the actual size of the inner square of the pinwheel.</comment></custom-block></script><script x="20" y="414.20000000000005"><block s="down"></block><block s="setColor"><color>145,26,68,1</color></block><block s="clear"></block><custom-block s="pinwheel, branches: %s size %s backup %s"><l>5</l><l>90</l><l>50</l><comment w="90" collapsed="false">(You may experiment with the numbers) This makes a 5 branched pinwheel which has a side length of 90. The backup affects the actual size of the inner pentagon of the pinwheel.</comment></custom-block></script><script x="10" y="603.2000000000003"><block s="down"></block><block s="setColor"><color>145,26,68,1</color></block><block s="clear"></block><custom-block s="pinwheel, branches: %s size %s backup %s"><l>12</l><l>90</l><l>-37</l><comment w="90" collapsed="false">(You may experiment with the numbers) This makes a 6 branched pinwheel which has a side length of 90, as well. The backup affects the actual size of the inner dodecagon of the pinwheel.</comment></custom-block></script><script x="424.9999999999999" y="658.2000000000007"><block s="doFor"><l>length</l><l>1</l><l>90</l><script><block s="down"></block><custom-block s="polygon, sides %s side length %s"><l>4</l><block s="reportProduct"><l>5</l><block var="length"/></block></custom-block><block s="turn"><l>360</l></block></script><comment w="90" collapsed="false">This whole string here creates a squirel. The polygon has four sides (obviously) and the length is judged by the command &quot;side length: 5 x length&quot;.</comment></block></script><script x="12" y="780.2000000000005"><block s="down"></block><block s="setColor"><color>145,26,68,1</color></block><block s="clear"></block><custom-block s="pinwheel, random number of branches"><comment w="90" collapsed="false">This command creates a random pinwheel with a. random number of branches. The number of branches goes from 3 to 12.</comment></custom-block></script><script x="426.9999999999999" y="316.2000000000007"><block s="setColor"><color>145,26,68,1</color></block><block s="clear"></block><custom-block s="asterisk, branches %s branch length %s"><l>8</l><l>10</l><comment w="90" collapsed="false">This command creates an asterisk. The number of branches on the asterisk can be changed, but for right now, it has 8 branches. The branch length is also variable too because it doesn&apos;t necessarily affect the shape, except for the actual branch length. The script is just the pinwheel script, but the length and backup is equivalent to the height, making no inner shape.</comment></custom-block></script><script x="461.9999999999999" y="109.20000000000073"><block s="down"></block><block s="setColor"><color>145,26,68,1</color></block><block s="clear"></block><custom-block s="polygon, sides %s side length %s"><l>8</l><l>80</l><comment w="90" collapsed="false">This is quite simple really. This just creates a polygon. In order to do this, you remove all of the backup by putting in the pinwheel script and getting rid of the backup portion of the script, which makes a regular polygon.</comment></custom-block></script></scripts></sprite></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="pinwheel, branches: %&apos;number of branches&apos; size %&apos;size&apos; backup %&apos;backup&apos;" type="command" category="motion"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%s"></input><input type="%s"></input></inputs><script><block s="doRepeat"><block var="number of branches"/><script><block s="forward"><block var="size"/></block><block s="doWait"><l>.1</l></block><block s="forward"><block s="reportProduct"><l>-1</l><block s="reportMonadic"><l><option>abs</option></l><block var="backup"/></block></block></block><block s="doWait"><l>.1</l></block><block s="turn"><block s="reportQuotient"><l>360</l><block var="number of branches"/></block></block></script></block></script></block-definition><block-definition s="pinwheel, random number of branches" type="command" category="motion"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doRepeat"><block s="reportRandom"><l>3</l><l>12</l></block><script><block s="forward"><l>100</l></block><block s="doWait"><l>.1</l></block><block s="forward"><l>-70</l></block><block s="doWait"><l>.1</l></block><block s="turn"><block s="reportQuotient"><l>360</l><block s="reportRandom"><l>3</l><l>12</l></block></block></block></script></block></script></block-definition><block-definition s="even number" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="reportOr"><l/><l/></block></block></script></block-definition><block-definition s="asterisk, branches %&apos;branches&apos; branch length %&apos;length&apos;" type="command" category="motion"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%s"></input></inputs><script><custom-block s="pinwheel, branches: %s size %s backup %s"><block var="branches"/><block var="length"/><block var="length"/></custom-block></script></block-definition><block-definition s="polygon, sides %&apos;# of sides&apos; side length %&apos;length&apos;" type="command" category="motion"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%s"></input></inputs><script><block s="doRepeat"><block var="# of sides"/><script><block s="forward"><block var="length"/></block><block s="doWait"><l>.1</l></block><block s="turn"><block s="reportQuotient"><l>360</l><block var="# of sides"/></block></block></script></block></script></block-definition></blocks><variables></variables></project><media name="U1L3-Pinwheel" app="Snap! 5.1, http://snap.berkeley.edu" version="1"></media></snapdata>