<snapdata remixID="10017162"><project name="U1L3pp1-2-AngleExperiments1 Lab Solution" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAABnklEQVR4nO3XsW3DQBQFwauCmUpUD0wVqwSVokLYBCMm58xwQmXWwvIMcPkLFvi4MSE06gH8bwIkJUBSAiQlQFICJCVAUgIkJUBSAiQlQFICJCVAUgIkJUBSAiQlQFICJCVAUgIkJUBSAiQlQFICJCVAUgIkJUBSAiQlQFICJCVAUgIkJUBSAiQlQFICJCVAUgIkJUBSAiQlQFICJCVAUgIkJUBSAiQlQFICJCVAUgIkJUBSAiQlQFICJCVAUgIkJcAT9/t9rus6t22rp3w0AZ7Y931eLpc5xphjjHm9XuftdpvHcdTTPooAX3g+n98B/nzLssx1Xefj8agn/nkCfEGAv0+AJ5zg9xDgCZ+Q9xAgKQGSEiApAZISICkBkhIgKQGSEiApAZISICkBkhIgKQGSEiApAZISICkBkhIgKQGSEiApAZISICkBkhIgKQGSEiApAZISICkBkhIgKQGSEiApAZISICkBkhIgKQGSEiApAZISICkBkhIgKQGSEiApAZISICkBkhIgKQGSEiApAZISICkBkhIgKQGSEiCpLxRHnYMdnuC6AAAAAElFTkSuQmCC</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" penlog="false" volume="100" pan="0" lines="round" ternary="true" hyperops="true" codify="false" inheritance="false" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAACtUlEQVR4nO3BMQEAAADCoPVPbQwfoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+Bo3+AAF/RMkcAAAAAElFTkSuQmCC</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="0" y="0" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="0,0,0,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><comment x="13.333333333333343" y="13.333333333333329" w="428.6666666666667" collapsed="false">Solutions for pages 1-2:&#xD;&#xD;Hardly anything on these pages really requires an Official Solution.  1.1-4 just beat to death the script to draw a square, always the first exercise in turtle geometry. 1.1.5(e) sneaks in an actual challenge, namely, drawing an equilateral triangle.  Probably by the end of the class period, all the students will have taught each other how to do it, but if not, resist the temptation to tell them, because the rest of this lab is about how to figure out turning angles for arbitrary regular polygons.  2.5 has a solution, below.&#xD;&#xD;The TIF solutions are in separate files:&#xD;U1L3-Malevich&#xD;U1L3-Thomas</comment><script x="13.333333333333343" y="194.66666666666666"><block s="doRepeat"><l>3</l><script><block s="forward"><l>100</l></block><block s="forward"><l>-100</l></block><block s="turn"><l>120</l></block></script><comment w="53.333333333333336" collapsed="true">2.5</comment></block></script><script x="13.333333333333343" y="302.66666666666663"><block s="down"><comment w="184.83333333333334" collapsed="false">A. Click this script. What does it do?</comment></block><block s="clear"></block><block s="forward"><l>100</l></block><block s="forward"><l>-100</l></block></script><script x="13.333333333333343" y="393"><block s="clear"></block><block s="forward"><l>100</l><comment w="227.33333333333334" collapsed="false">B. It&apos;s easier to see what&apos;s happening if the script waits between steps.&#xD;&#xD;Remember, you can use Visible Stepping instead&#xD;of adding WAIT blocks.</comment></block><block s="doWait"><l>0.5</l></block><block s="forward"><l>-100</l></block></script><script x="13.333333333333343" y="511"><block s="clear"></block><block s="forward"><l>100</l><comment w="282.99999999999994" collapsed="false">C. After drawing the spike, turn half way around (&quot;do a 180&quot;).&#xD;&#xD;How many times must you run this script to get the sprite to face the way it started (facing &quot;right&quot; or &quot;to the east&quot;)?&#xD;&#xD;Use Visible Stepping if needed.</comment></block><block s="forward"><l>-100</l></block><block s="turn"><l>180</l></block></script><script x="13.333333333333343" y="641"><block s="clear"></block><block s="doRepeat"><l>2</l><script><block s="forward"><l>100</l></block><block s="forward"><l>-100</l></block><block s="turn"><l>180</l></block></script><comment w="145.5000000000001" collapsed="false">D. Instead of clicking twice, you can use REPEAT to automate.</comment></block></script></scripts></sprite></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="not too small triangle %&apos;size&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%n"></input></inputs><script><block s="doIf"><block s="reportGreaterThan"><block var="size"/><l>9</l></block><script><block s="doRepeat"><l>3</l><script><block s="forward"><block var="size"/></block><block s="turn"><l>120</l></block></script></block></script></block></script></block-definition><block-definition s="fancy triangle %&apos;size&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%n"></input></inputs><script><block s="doIf"><block s="reportGreaterThan"><block var="size"/><l>9</l></block><script><block s="doRepeat"><l>3</l><script><block s="forward"><block var="size"/></block><custom-block s="fancy triangle %n"><block s="reportQuotient"><block var="size"/><l>2</l></block></custom-block><block s="turn"><l>120</l></block></script></block></script></block></script></block-definition><block-definition s="not too small square %&apos;size&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%n"></input></inputs><script><block s="doIf"><block s="reportGreaterThan"><block var="size"/><l>9</l></block><script><block s="doRepeat"><l>4</l><script><block s="forward"><block var="size"/></block><block s="turn"><l>90</l></block></script></block></script></block></script></block-definition><block-definition s="not too small hexagon %&apos;size&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%n"></input></inputs><script><block s="doIf"><block s="reportGreaterThan"><block var="size"/><l>9</l></block><script><block s="doRepeat"><l>6</l><script><block s="forward"><block var="size"/></block><block s="turn"><l>60</l></block></script></block></script></block></script></block-definition><block-definition s="fancy square %&apos;size&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%n"></input></inputs><script><block s="doIf"><block s="reportGreaterThan"><block var="size"/><l>9</l></block><script><block s="doRepeat"><l>4</l><script><block s="forward"><block var="size"/></block><custom-block s="fancy square %n"><block s="reportQuotient"><block var="size"/><l>2</l></block></custom-block><block s="turn"><l>90</l></block></script></block></script></block></script></block-definition><block-definition s="fancy hexagon %&apos;size&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%n"></input></inputs><script><block s="doIf"><block s="reportGreaterThan"><block var="size"/><l>9</l></block><script><block s="doRepeat"><l>6</l><script><block s="forward"><block var="size"/></block><custom-block s="fancy hexagon %n"><block s="reportQuotient"><block var="size"/><l>2</l></block></custom-block><block s="turn"><l>60</l></block></script></block></script></block></script></block-definition><block-definition s="asterisk, %&apos;spokes&apos; spokes" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%n"></input></inputs><script><block s="doDeclareVariables"><list><l>color</l><l>heading</l></list></block><block s="doSetVar"><l>color</l><l>20</l></block><block s="setSize"><l>2</l></block><block s="doRepeat"><block var="spokes"/><script><custom-block s="set pen to crayon %n"><l>0</l></custom-block><block s="forward"><l>100</l></block><block s="forward"><l>-100</l></block><block s="doSetVar"><l>heading</l><block s="direction"></block></block><block s="turn"><l>4</l></block><custom-block s="set pen to crayon %n"><block var="color"/></custom-block><block s="doRepeat"><block s="reportDifference"><block s="reportQuotient"><l>360</l><block var="spokes"/></block><l>8</l></block><script><block s="turn"><l>1</l></block><block s="forward"><l>30</l></block><block s="forward"><l>-30</l></block></script></block><custom-block s="set pen to crayon %n"><l>0</l></custom-block><block s="setHeading"><block var="heading"/></block><block s="forward"><l>100</l></block><block s="forward"><l>-100</l></block><block s="turn"><block s="reportQuotient"><l>360</l><block var="spokes"/></block></block><block s="forward"><l>100</l></block><block s="forward"><l>-100</l></block><block s="doChangeVar"><l>color</l><l>10</l></block></script></block></script></block-definition><block-definition s="multiline %&apos;text&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%code"></input></inputs><script><block s="doReport"><block var="text"/></block></script></block-definition><block-definition s="set pen to crayon %&apos;which&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%n"><options>grays={&#xD;0 black #000000=0&#xD;1 gray7 #121212=1&#xD;2 gray14 #242424=2&#xD;3 gray21 #363636=3&#xD;4 gray28 #484848=4&#xD;5 gray36 #5c5c5c=5&#xD;6 gray43 #6d6d6d=6&#xD;7 gray50 #7f7f7f=7&#xD;8 gray57 #919191=8&#xD;9 gray64 #a3a3a3=9&#xD;10 gray71 #b5b5b5=10&#xD;11 gray78 #c8c8c8=11&#xD;12 gray85 #dadada=12&#xD;13 gray92 #ececec=13&#xD;14 white #ffffff=14&#xD;}&#xD;pinks={&#xD;15 deep pink #ff1493=15&#xD;16 hot pink #ff69b4=16&#xD;17 bright pink #ff007f=17&#xD;18 raspberry #e30b5d=18&#xD;19 amaranth #e52b50=19&#xD;}&#xD;reds={&#xD;20 red #ff0000=20&#xD;21 burgundy #900020=21&#xD;22 cherry #990000=22&#xD;23 dark candy apple red #a40000=23&#xD;24 sanguine #c00000=24&#xD;25 maroon #800000=25&#xD;26 crimson #c90016=26&#xD;27 Lists #d94d11=27&#xD;28 candy apple red #ff0800=28&#xD;29 coquelicot #ff3800=29&#xD;}&#xD;browns={&#xD;30 saddle brown #8b4513=30&#xD;31 chocolate #7b3f00=31&#xD;32 kobicha #6b4423=32&#xD;33 sepia #704214=33&#xD;34 chestnut #954535=34&#xD;35 dark brown #654321=35&#xD;36 brown #964b00=36&#xD;37 golden brown #996515=37&#xD;38 copper #b87333=38&#xD;39 cinnamon #d2691e=39&#xD;}&#xD;oranges={&#xD;40 orange #ff7f00=40&#xD;41 Pantone orange #ff5800=41&#xD;42 pumpkin #ff7518=42&#xD;43 Variables #f3761d=43&#xD;44 Spanish orange #e86100=44&#xD;45 burnt orange #cc5500=45&#xD;46 sinopia #cb410b=46&#xD;47 ochre #cc7722=47&#xD;48 carrot #ed9121=48&#xD;49 tangerine #f28500=49&#xD;}&#xD;yellows={&#xD;50 yellow #ffff00=50&#xD;51 Control #e6a822=51&#xD;52 dark goldenrod #b8860b=52&#xD;53 goldenrod #daa520=53&#xD;54 saffron #f4c430=55&#xD;55 sandstorm #ecd540=55&#xD;56 mustard #ffdb58=56&#xD;57 gold #ffd700=57&#xD;58 egg yolk #fee33e=58&#xD;59 rubber duck #fbe108=59&#xD;}&#xD;greens={&#xD;60 lime #00ff00=60&#xD;61 apple green #8db600=61&#xD;62 Operators #62c213=62&#xD;63 forest green #228b22=63&#xD;64 green #008000=64&#xD;65 dark green #006400=65&#xD;66 dark pastel green #03c03c=66&#xD;67 emerald #50c878=67&#xD;68 mint #3eb489=68&#xD;69 Pen #00a178=69&#xD;}&#xD;cyans={&#xD;70 aqua (cyan) #00ffff=70&#xD;71 dark cyan #008b8b=71&#xD;72 cerulean #007ba7=72&#xD;73 iceberg #71a6d2=73&#xD;74 Sensing #0494dc=74&#xD;75 teal #008080=75&#xD;76 light sky blue #87cefa=76&#xD;77 deep sky blue #00bfff=77&#xD;78 dodger blue #1e90ff=78&#xD;79 azure #007fff=79&#xD;}&#xD;blues={&#xD;80 blue #0000ff=80&#xD;81 midnight blue #191970=81&#xD;82 dark powder blue #003399=82&#xD;83 cobalt #0047ab=83&#xD;84 denim #1560bd=84&#xD;85 navy blue #000080=85&#xD;86 steel blue #4682b4=86&#xD;87 Motion #4a6cd4=87&#xD;88 cornflower #6495ed=88&#xD;89 slate blue #6a5acd=89&#xD;}&#xD;violets={&#xD;90 violet #8f00ff=90&#xD;91 Looks #8f56e3=91&#xD;92 grape #6f2da8=92&#xD;93 indigo #4b0082=93&#xD;94 x11 purple #a020f0=94&#xD;95 magenta (fuchia) #ff00ff=95&#xD;96 dark orchid #9932cc=96&#xD;97 Sound #cf4ad9=97&#xD;98 purple #7f007f=98&#xD;99 dark magenta #8b008b=99&#xD;}</options></input></inputs><script><block s="doDeclareVariables"><list><l>colors</l><l>color</l></list></block><block s="doSetVar"><l>colors</l><block s="reportMap"><block s="reifyReporter"><autolambda><block s="reportTextSplit"><l></l><l>,</l></block></autolambda><list></list></block><block s="reportTextSplit"><custom-block s="multiline %code"><l>0,0,0&#xD;18,18,18&#xD;36,36,36&#xD;54,54,54&#xD;72,72,72&#xD;92,92,92&#xD;109,109,109&#xD;127,127,127&#xD;145,145,145&#xD;163,163,163&#xD;181,181,181&#xD;200,200,200&#xD;218,218,218&#xD;236,236,236&#xD;255,255,255&#xD;255,20,147&#xD;255,105,180&#xD;255,0,127&#xD;227,11,93&#xD;229,43,80&#xD;255,0,0&#xD;144,0,32&#xD;153,0,0&#xD;164,0,0&#xD;192,0,0&#xD;128,0,0&#xD;201,0,22&#xD;217,77,17&#xD;255,8,0&#xD;255,56,0&#xD;139,69,19&#xD;123,63,0&#xD;107,68,35&#xD;112,66,20&#xD;149,69,53&#xD;101,67,33&#xD;150,75,0&#xD;153,101,21&#xD;184,115,51&#xD;210,105,30&#xD;255,127,0&#xD;255,88,0&#xD;255,117,24&#xD;243,118,29&#xD;232,97,0&#xD;204,85,0&#xD;203,65,11&#xD;204,119,34&#xD;237,145,33&#xD;242,133,0&#xD;255,255,0&#xD;230,168,34&#xD;184,134,11&#xD;218,165,32&#xD;244,196,48&#xD;236,213,64&#xD;255,219,88&#xD;255,215,0&#xD;254,227,62&#xD;251,225,8&#xD;0,255,0&#xD;141,182,0&#xD;98,194,19&#xD;34,139,34&#xD;0,128,0&#xD;0,100,0&#xD;3,192,60&#xD;80,200,120&#xD;62,180,137&#xD;0,161,120&#xD;0,255,255&#xD;0,139,139&#xD;0,123,167&#xD;113,166,210&#xD;4,148,220&#xD;0,128,128&#xD;135,206,250&#xD;0,191,255&#xD;30,144,255&#xD;0,127,255&#xD;0,0,255&#xD;25,25,112&#xD;0,51,153&#xD;0,71,171&#xD;21,96,189&#xD;0,0,128&#xD;70,130,180&#xD;74,108,212&#xD;100,149,237&#xD;106,90,205&#xD;143,0,255&#xD;143,86,227&#xD;111,45,168&#xD;75,0,130&#xD;160,32,240&#xD;255,0,255&#xD;153,50,204&#xD;207,74,217&#xD;127,0,127&#xD;139,0,139</l></custom-block><l><option>line</option></l></block></block></block><block s="doSetVar"><l>color</l><block s="reportListItem"><block s="reportSum"><block s="reportModulus"><block var="which"/><l>100</l></block><l>1</l></block><block var="colors"/></block></block><custom-block s="set pen color to r: %n g: %n b: %n"><block s="reportListItem"><l>1</l><block var="color"/></block><block s="reportListItem"><l>2</l><block var="color"/></block><block s="reportListItem"><l>3</l><block var="color"/></block></custom-block></script></block-definition><block-definition s="nearest crayon to %&apos;old color&apos;" type="reporter" category="pen"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doDeclareVariables"><list><l>colors</l><l>min value</l><l>min index</l><l>index</l><l>distance</l><l>color</l></list></block><block s="doSetVar"><l>min value</l><l>1000</l></block><block s="doSetVar"><l>min index</l><l>-1</l></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doSetVar"><l>colors</l><block s="reportMap"><block s="reifyReporter"><autolambda><block s="reportTextSplit"><l></l><l>,</l></block></autolambda><list></list></block><block s="reportTextSplit"><custom-block s="multiline %code"><l>0,0,0&#xD;18,18,18&#xD;36,36,36&#xD;54,54,54&#xD;72,72,72&#xD;92,92,92&#xD;109,109,109&#xD;127,127,127&#xD;145,145,145&#xD;163,163,163&#xD;181,181,181&#xD;200,200,200&#xD;218,218,218&#xD;236,236,236&#xD;255,255,255&#xD;255,20,147&#xD;255,105,180&#xD;255,0,127&#xD;227,11,93&#xD;229,43,80&#xD;255,0,0&#xD;144,0,32&#xD;153,0,0&#xD;164,0,0&#xD;192,0,0&#xD;128,0,0&#xD;201,0,22&#xD;217,77,17&#xD;255,8,0&#xD;255,56,0&#xD;139,69,19&#xD;123,63,0&#xD;107,68,35&#xD;112,66,20&#xD;149,69,53&#xD;101,67,33&#xD;150,75,0&#xD;153,101,21&#xD;184,115,51&#xD;210,105,30&#xD;255,127,0&#xD;255,88,0&#xD;255,117,24&#xD;243,118,29&#xD;232,97,0&#xD;204,85,0&#xD;203,65,11&#xD;204,119,34&#xD;237,145,33&#xD;242,133,0&#xD;255,255,0&#xD;230,168,34&#xD;184,134,11&#xD;218,165,32&#xD;244,196,48&#xD;236,213,64&#xD;255,219,88&#xD;255,215,0&#xD;254,227,62&#xD;251,225,8&#xD;0,255,0&#xD;141,182,0&#xD;98,194,19&#xD;34,139,34&#xD;0,128,0&#xD;0,100,0&#xD;3,192,60&#xD;80,200,120&#xD;62,180,137&#xD;0,161,120&#xD;0,255,255&#xD;0,139,139&#xD;0,123,167&#xD;113,166,210&#xD;4,148,220&#xD;0,128,128&#xD;135,206,250&#xD;0,191,255&#xD;30,144,255&#xD;0,127,255&#xD;0,0,255&#xD;25,25,112&#xD;0,51,153&#xD;0,71,171&#xD;21,96,189&#xD;0,0,128&#xD;70,130,180&#xD;74,108,212&#xD;100,149,237&#xD;106,90,205&#xD;143,0,255&#xD;143,86,227&#xD;111,45,168&#xD;75,0,130&#xD;160,32,240&#xD;255,0,255&#xD;153,50,204&#xD;207,74,217&#xD;127,0,127&#xD;139,0,139</l></custom-block><l><option>line</option></l></block></block></block><block s="doWarp"><script><block s="doRepeat"><l>100</l><script><block s="doSetVar"><l>color</l><block s="reportListItem"><block var="index"/><block var="colors"/></block></block><block s="doIf"><block s="reportEquals"><block var="color"/><block var="old color"/></block><script><block s="doReport"><block s="reportDifference"><block var="index"/><l>1</l></block></block></script></block><block s="doSetVar"><l>distance</l><block s="reportSum"><block s="reportMonadic"><l><option>abs</option></l><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="color"/></block><block s="reportListItem"><l>1</l><block var="old color"/></block></block></block><block s="reportSum"><block s="reportMonadic"><l><option>abs</option></l><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="color"/></block><block s="reportListItem"><l>2</l><block var="old color"/></block></block></block><block s="reportMonadic"><l><option>abs</option></l><block s="reportDifference"><block s="reportListItem"><l>3</l><block var="color"/></block><block s="reportListItem"><l>3</l><block var="old color"/></block></block></block></block></block></block><block s="doIf"><block s="reportLessThan"><block var="distance"/><block var="min value"/></block><script><block s="doSetVar"><l>min value</l><block var="distance"/></block><block s="doSetVar"><l>min index</l><block var="index"/></block></script></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block><block s="doReport"><block s="reportDifference"><block var="min index"/><l>1</l></block></block></script></block></script></block-definition><block-definition s="set pen color to r: %&apos;r&apos; g: %&apos;g&apos; b: %&apos;b&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%n">255</input><input type="%n">0</input><input type="%n">0</input></inputs><script><block s="doRun"><block s="reportJSFunction"><list><l>r</l><l>g</l><l>b</l></list><l>this.setColor(new Color(r, g, b));</l></block><list><block var="r"/><block var="g"/><block var="b"/></list></block></script></block-definition><block-definition s="RGB color" type="reporter" category="pen"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l></l></list><l>return new List([this.color.r, this.color.g, this.color.b]);</l></block><list></list></block></block></script></block-definition><block-definition s="change crayon by %&apos;diff&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%n"></input></inputs><script><custom-block s="set pen to crayon %n"><block s="reportSum"><custom-block s="nearest crayon to %l"><custom-block s="RGB color"></custom-block></custom-block><block var="diff"/></block></custom-block></script></block-definition><block-definition s="setup" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="clear"></block><block s="up"></block><block s="gotoXY"><l>0</l><l>0</l></block><block s="setHeading"><l>90</l></block><block s="down"></block></script></block-definition><block-definition s="pinwheel, %&apos;spokes&apos; spokes" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%n"></input></inputs><script><block s="doDeclareVariables"><list><l>color</l><l>x position</l><l>y position</l><l>heading</l></list></block><block s="doSetVar"><l>color</l><l>20</l></block><block s="setSize"><l>2</l></block><block s="doRepeat"><block var="spokes"/><script><custom-block s="set pen to crayon %n"><l>0</l></custom-block><block s="forward"><l>50</l></block><block s="doSetVar"><l>x position</l><block s="xPosition"></block></block><block s="doSetVar"><l>y position</l><block s="yPosition"></block></block><block s="doSetVar"><l>heading</l><block s="direction"></block></block><block s="forward"><l>50</l></block><block s="doWait"><l>0.2</l></block><block s="doGlide"><l>0.5</l><block var="x position"/><block var="y position"/></block><block s="turn"><l>4</l></block><custom-block s="set pen to crayon %n"><block var="color"/></custom-block><block s="doRepeat"><block s="reportDifference"><block s="reportQuotient"><l>360</l><block var="spokes"/></block><l>8</l></block><script><block s="turn"><l>1</l></block><block s="forward"><l>30</l></block><block s="forward"><l>-30</l></block></script></block><block s="setHeading"><block var="heading"/></block><custom-block s="set pen to crayon %n"><l>0</l></custom-block><block s="forward"><l>50</l></block><block s="forward"><l>-50</l></block><block s="turn"><block s="reportQuotient"><l>360</l><block var="spokes"/></block></block><block s="forward"><l>100</l></block><block s="forward"><l>-100</l></block><block s="doChangeVar"><l>color</l><l>10</l></block></script></block></script></block-definition></blocks><variables></variables></project><media name="U1L3pp1-2-AngleExperiments1 Lab Solution" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>