<snapdata remixID="9609091"><project name="1.3 Kyle Shapes" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAACJUlEQVR4Xu3SwQkAIAADMd1/6AoucZ90gcKRu23HFIgKXACj8m5/AQBBSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt/5A4Lj3qhsHKpPAAAAAElFTkSuQmCC</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="false" hyperops="true" codify="false" inheritance="true" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAOhUlEQVR4Xu3VwQkAAAjEMN1/abewn7jAQRC64wgQIECAAIF3gX1fNEiAAAECBAiMAHsCAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQIHLFxAWmhEwHPAAAAAElFTkSuQmCC</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="100" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="131,255,102,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="428" y="15.66666666666606"><block s="receiveKey"><l><option>3</option></l></block><block s="setEffect"><l><option>ghost</option></l><l>0</l></block><block s="clear"></block><block s="up"></block><block s="gotoXY"><l>-100</l><l>50</l></block><block s="setHeading"><l>90</l></block><block s="down"></block><block s="setSize"><l>3</l></block><block s="setColor"><color>50,148,0,1</color></block><block s="doRest"><l>0.5</l></block><block s="bubble"><l>Rectangle</l></block><block s="forward"><l>200</l></block><block s="turn"><l>90</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>90</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>200</l></block><block s="turn"><l>90</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>90</l></block><block s="doRest"><l>2</l></block><block s="setEffect"><l><option>ghost</option></l><l>100</l></block><block s="doIfElse"><block s="reportKeyPressed"><l><option>space</option></l></block><script><block s="doWaitUntil"><l><bool>true</bool></l></block><block s="clear"></block></script><script><block s="doStopThis"><l><option>all</option></l></block></script></block><block s="doStopThis"><l><option>all</option></l></block></script><script x="10" y="10"><block s="receiveKey"><l><option>1</option></l></block><block s="setEffect"><l><option>ghost</option></l><l>0</l></block><block s="clear"></block><block s="up"></block><block s="gotoXY"><l>-50</l><l>50</l></block><block s="setHeading"><l>90</l></block><block s="down"></block><block s="setSize"><l>1</l></block><block s="setColor"><color>145,26,68,1</color></block><block s="doRest"><l>0.5</l></block><block s="bubble"><l>Equilateral Triangle</l></block><block s="forward"><l>100</l></block><block s="turn"><l>120</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>120</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>120</l></block><block s="doRest"><l>2</l></block><block s="setEffect"><l><option>ghost</option></l><l>100</l></block><block s="doIfElse"><block s="reportKeyPressed"><l><option>space</option></l></block><script><block s="doWaitUntil"><l><bool>true</bool></l></block><block s="clear"></block></script><script><block s="doStopThis"><l><option>all</option></l></block></script></block><block s="doStopThis"><l><option>all</option></l></block></script><script x="222" y="11"><block s="receiveKey"><l><option>2</option></l></block><block s="setEffect"><l><option>ghost</option></l><l>0</l></block><block s="clear"></block><block s="up"></block><block s="gotoXY"><l>-50</l><l>50</l></block><block s="setHeading"><l>90</l></block><block s="down"></block><block s="setSize"><l>2</l></block><block s="setColor"><color>255,142,107,1</color></block><block s="doRest"><l>0.5</l></block><block s="bubble"><l>Square</l></block><block s="forward"><l>100</l></block><block s="turn"><l>90</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>90</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>90</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>90</l></block><block s="doRest"><l>2</l></block><block s="setEffect"><l><option>ghost</option></l><l>100</l></block><block s="doIfElse"><block s="reportKeyPressed"><l><option>space</option></l></block><script><block s="doWaitUntil"><l><bool>true</bool></l></block><block s="clear"></block></script><script><block s="doStopThis"><l><option>all</option></l></block></script></block><block s="doStopThis"><l><option>all</option></l></block></script><script x="642" y="18.66666666666606"><block s="receiveKey"><l><option>4</option></l></block><block s="setEffect"><l><option>ghost</option></l><l>0</l></block><block s="clear"></block><block s="up"></block><block s="gotoXY"><l>0</l><l>100</l></block><block s="setHeading"><l>150</l></block><block s="down"></block><block s="setSize"><l>4</l></block><block s="setColor"><color>131,255,102,1</color></block><block s="doRest"><l>0.5</l></block><block s="bubble"><l>Rhombus</l></block><block s="forward"><l>100</l></block><block s="turn"><l>60</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>120</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>60</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="setHeading"><l>90</l></block><block s="doRest"><l>2</l></block><block s="setEffect"><l><option>ghost</option></l><l>100</l></block><block s="doIfElse"><block s="reportKeyPressed"><l><option>space</option></l></block><script><block s="doWaitUntil"><l><bool>true</bool></l></block><block s="clear"></block></script><script><block s="doStopThis"><l><option>all</option></l></block></script></block><block s="doStopThis"><l><option>all</option></l></block></script><script x="230" y="2035.1666666666677"><block s="receiveKey"><l><option>6</option></l></block><block s="setEffect"><l><option>ghost</option></l><l>0</l></block><block s="clear"></block><block s="up"></block><block s="gotoXY"><l>0</l><l>50</l></block><block s="setHeading"><l>126</l></block><block s="down"></block><block s="setSize"><l>6</l></block><block s="setColor"><color>138,227,255,1</color></block><block s="doRest"><l>0.5</l></block><block s="bubble"><l>Pentagon</l></block><block s="forward"><l>100</l></block><block s="turn"><l>72</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>72</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>72</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>72</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="setHeading"><l>90</l></block><block s="doRest"><l>2</l></block><block s="setEffect"><l><option>ghost</option></l><l>100</l></block><block s="doIfElse"><block s="reportKeyPressed"><l><option>space</option></l></block><script><block s="doWaitUntil"><l><bool>true</bool></l></block><block s="clear"></block></script><script><block s="doStopThis"><l><option>all</option></l></block></script></block><block s="doStopThis"><l><option>all</option></l></block></script><script x="30" y="2033.6666666666686"><block s="receiveKey"><l><option>5</option></l></block><block s="setEffect"><l><option>ghost</option></l><l>0</l></block><block s="clear"></block><block s="up"></block><block s="gotoXY"><l>-100</l><l>50</l></block><block s="setHeading"><l>90</l></block><block s="down"></block><block s="setSize"><l>5</l></block><block s="setColor"><color>0,37,189,1</color></block><block s="doRest"><l>0.5</l></block><block s="bubble"><l>Parallelogram</l></block><block s="forward"><l>200</l></block><block s="turn"><l>60</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>120</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>200</l></block><block s="turn"><l>60</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>100</l></block><block s="turn"><l>120</l></block><block s="doRest"><l>2</l></block><block s="setEffect"><l><option>ghost</option></l><l>100</l></block><block s="doIfElse"><block s="reportKeyPressed"><l><option>space</option></l></block><script><block s="doWaitUntil"><l><bool>true</bool></l></block><block s="clear"></block></script><script><block s="doStopThis"><l><option>all</option></l></block></script></block><block s="doStopThis"><l><option>all</option></l></block></script><comment x="14" y="702.3333333333335" w="90" collapsed="false">When the 1 key is pressed, the very first thing that the sprite does is set its ghost effect to 0, making it reappear again after it disappears from previous codes. I clear the board with a clear and pen up block, and then set the sprites position. Then I place the pen down, set a unique pen size (simply goes up by one for each shape), which is 1, and pen color, which is burgundy. The sprite states the shape, and then it starts making an equilateral triangle. This code works because since each of an equilateral triangle&apos;s angles are 60 degrees, which all add up to a total of 180 degrees, and since my sprite is tracing the outside of shapes, the sprite needs to turn the amount of degrees the exterior angles of the equaliteral triangles are. This can be calculated simpy by taking the 180-60 degrees (total degrees of triangle-one interior angle of triangle) to get 120 degrees. This means for every 100 steps forward, the sprite needs to turn 120 degrees to make an equilateral triangle. This is repeated 3 times to create three sides. After it is done, I wait for two seconds and then ghost the sprite so it disappears. I use a little if statement to give the user the option to erase the pen marks/shape on the stage. This works because the if statement states that if the space key is continually pressed, then it waits until the user presses the spacebar and then erases the pen marks. Else (meaning the user doesn&apos;t press the spacebar), and the program simply ends, with the text going away (from the stop-all block), the sprite having a ghost effect of 100, and the shape either being erased by the user or left on the stage (this shape is cleared when the next program is started because I reset everything in the beginning, including a clear block that erases all pen marks on the stage.  </comment><comment x="224" y="697.6666666666665" w="90" collapsed="false">When the 2 key is pressed, the very first thing that the sprite does is set its ghost effect to 0, making it reappear again after it disappears from previous codes. I clear the board with a clear and pen up block, and then set the sprites position.Then I place down the pen down and set a unique pen size , which is two, and a unique pen color, which is orange. The sprite states the shape, which is &quot;Square&quot;, and then the sprite begins making a square. This code works because my turn 90 degrees block is clockwise. Since I want to draw my square in a clockwise direction, my sprite&apos;s first move is 100 steps to the right because that is how I reset the sprite. Then it goes in a clockwise direction, turning right each time for 4 times until a square is made. Since my sprite and the direction of turn are both clockwise, I can use the interior angle to make a square, so I would turn 90 degrees closkwise every time I turn. If I made my sprite move counterclockwise, then I could use an angle of 270 degrees clockwise because I would need to use an exterior angle in this case (the direction of turn and direction of sprite are different), or I could simply align the direction of turn and the direction the sprite is moving to counterclockwise, and then I would only have to turn 90 degrees. Essentially, I turn 90 degrees because that is the interior angle of the square, and I can use it because the direction of the sprite and the direction of turn are aligned as clockwise. I move 100 steps, turn clockwise 90 degrees, and repeat this four times until the sprite creates a square. Then I ghost the sprite by settting the ghost effect to 100, and use the same sequence as the equilateral triangle to allow the user to choose whether to erase the shape or not by a prolonged press of the spacebar.  </comment><comment x="642" y="695.666666666667" w="90" collapsed="false">When the 4 key is pressed, the very first thing that the sprite does is set its ghost effect to 0, making it reappear again after it disappears from previous codes. I clear the board with a clear and pen up block, and then set the sprites position. Then I place the pen down and set a unique pen size, which is four, and a unique pen color, which is light green. The sprite states the shape, which is &quot;Rhombus&quot; using the say block, and then the sprite begins making the rhombus. For the rhombus, instead of making the sprite point in the direction 90 degrees, which is the default, I set it to the angle at which I want it to go to make the rhombus, which is actually point in direction 150 degrees. This makes the rhombus point down at an angle, so when I move he sprite 100 steps, the very first line it creates is a line that goes down. With the shape of the rhombus, you have to put it in this position unless you want the rhombus to be laying on its side, which would also look like a parallelogram. I actually set the direction of the sprite after testing the script a few times to find the perfect angle. The pattern is that the sprite moves 100 steps, turns 60 degrees, then turns 120 (these turns make sense because they add up to 180 degrees, and you are essentially making a 180 degree turn with those turns, with the sprite going in the opposite direction). Then you turn 60 degrees again, and then I decided to put the sprite back in the default direction once it was finished drawing the rhombus. After I tested these turns, then I finally figured out what direction the sprite should point at in the beginning, so it drew an upright rhombus. You may notice that at the beginning of all scripts, I make the srprite go to a certain (x,y) position, and this is because I wanted the shapes to all be in the center of the stage. Each side of the rhombus is the same length (100 steps), and the pattern of turns is 150 degrees initial direction, 60 degrees, 120 degrees, 60 degrees, and finally point in direction 90 degrees (all turns are clockwise). This makes sense because since a rhombus is a quadrilateral shape, the angles should add up to 360 degrees. A square would equally divide these angles to 90 degree turns, but since this is a non-square rhombus, you have to make two turns the same angle (these are the alternate interior angles), and in between that turn is a larger turn to make the sprite point back up again, so I decided to just make the two turns 60 degrees and the larger one 120 degrees for a standard rhombus, not too long and not too short. After the rhombus is created, then I ghost the sprite by setting a ghost effect to 100, and then I use the same sequence as I did before about letting the user choose whether to erase the shape or not. If the user presses the spacebar, the shape will be erased and the script will end. If the user does nothing, the shape will stay on the stage until the next script is prompted (each program clears the stage as part of the reset procedure) </comment><comment x="429" y="696" w="90" collapsed="false">When the 3 key is pressed, the very first thing that the sprite does is set its ghost effect to 0, making it reappear again after it disappears from previous codes. I clear the board with a clear and pen up block, and then set the sprites position. Then I place the pen down and set a unique pen size, which is three, and a unique pen color, which is dark green. The sprite states the shape, which is &quot;Rectangle&quot;, and then the sprite begins making a rectangle. This uses the same philosophy as the square, since both have all interior angles being 90 degrees (adds up to 360 degrees). I set up the sprite to point in direction 90 degrees (faces right) and move 100 steps to the right, meaning that I am making the sprite move clockwise, and since my turn block is preset to clockwise as well, I simply use the interior angle of 90 degrees to make a rectangle. Instead, since a rectangle has a 2 sets of parallel sides, which one set of those parallel lines being longer than the other, I decided that the longer sides would be 200 steps and the shorter sides would be 100 steps. So, first, the sprite, would move 200 steps to the right, turn 90 degrees, move 100 steps, turn 90 degrees, move 200 steps, turn 90 degrees, move 100 steps, and turn 90 degrees to make a rectangle. After the rectangle is created, then I ghost the sprite by setting a ghost effect to 100, and then I use the same sequence as I did before about letting the user choose whether to erase the shape or not. If the user presses the spacebar, the shape will be erased and the script will end. If the user does nothing, the shape will stay on the stage until the next script is prompted (each program clears the stage as part of the reset procedure) </comment><comment x="231" y="2782.5000000000014" w="90" collapsed="false">When the 6 key is pressed, the very first thing that the sprite does is set its ghost effect to 0, making it reappear again after it disappears from previous codes. I clear the board with a clear and pen up block, and then set the sprites position. Then I place the pen down and set a unique pen size, which is six, and a unique pen color, which is light blue. The sprite states the shape, which is &quot;Pentagon&quot;, and then the sprite begins making a pentagon. A pentagon is easy to make because all angles and sides are congruent. The angles all add up to 540 degrees because 5 sided shapes have that sum of degrees. Since all sides are equal, they can all move a constant number of steps. You turn 72 degrees because since each interior angle is 108 (108*5=540 degrees), so with a sprite, you actually turn the difference between the interior angle of the pentagon and 180 degrees, so that is 72 degrees. So, the sprite just repeats the moves move 100 steps, and turn clockwise 72 degrees 5 times to create a pentagon. After the pentagon is created, then I ghost the sprite by setting a ghost effect to 100, and then I use the same sequence as I did before about letting the user choose whether to erase the shape or not. If the user presses the spacebar, the shape will be erased and the script will end. If the user does nothing, the shape will stay on the stage until the next script is prompted (each program clears the stage as part of the reset procedure). </comment><comment x="28" y="2715.500000000004" w="90" collapsed="false">When the 5 key is pressed, the very first thing that the sprite does is set its ghost effect to 0, making it reappear again after it disappears from previous codes. I clear the board with a clear and pen up block, and then set the sprites position. Then I place the pen down and set a unique pen size, which is five, and a unique pen color, which is dark blue. The sprite states the shape, which is &quot;Parallelogram&quot;, and then the sprite begins making a parallelogram. A parallelogram is easy because since both pairs of sides are parallels, it is safe to assume that the angles on the opposite sides of the parallelogram are also equal. The parallelogram&apos;s sum of angles is 360 degrees, and since I want the parallelogram to be a nice, even size, I made the larger angle turns double the smaller ones. Parallelograms also typically have a pair of longer sides and a pair of shorter sides, and since I wanted it to be even, the longer sides are 200 steps and the shorter sides are 100 sides. The sprite will begin facing 90 degrees and be positioned at (-100,50) so the parallelogram is centered. The sprite then goes 200 steps, turns 60 degrees (the smaller degree), then goes the shorter 100 steps but makes the larger turn of 120 degrees, then it goes 200 steps, turns 60 degrees, then goes 100 steps and turns 120 degrees to go back to the original position. This will perfectly create a uniform, nice-looking parallelogram (all turns are clockwise). After the parallelogram is created, then I ghost the sprite by setting a ghost effect to 100, and then I use the same sequence as I did before about letting the user choose whether to erase the shape or not. If the user presses the spacebar, the shape will be erased and the script will end. If the user does nothing, the shape will stay on the stage until the next script is prompted (each program clears the stage as part of the reset procedure). </comment><script x="440" y="2035.6666666666677"><block s="receiveKey"><l><option>7</option></l></block><block s="setEffect"><l><option>ghost</option></l><l>0</l></block><block s="clear"></block><block s="up"></block><block s="gotoXY"><l>-150</l><l>50</l></block><block s="setHeading"><l>162</l></block><block s="down"></block><block s="setSize"><l>7</l></block><block s="setColor"><color>255,97,237,1</color></block><block s="doRest"><l>0.5</l></block><block s="bubble"><l>Five Point Star Version 1</l></block><block s="forward"><l>50</l></block><block s="turnLeft"><l>72</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>50</l></block><block s="turn"><l>144</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>50</l></block><block s="turnLeft"><l>72</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>50</l></block><block s="turn"><l>144</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>50</l></block><block s="turnLeft"><l>72</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>50</l></block><block s="turn"><l>144</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>50</l></block><block s="turnLeft"><l>72</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>50</l></block><block s="turn"><l>144</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>50</l></block><block s="turnLeft"><l>72</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>50</l></block><block s="setHeading"><l>90</l></block><block s="doRest"><l>1</l></block><block s="up"></block><block s="forward"><l>150</l></block><block s="setSize"><l>8</l></block><block s="setColor"><color>209,0,52,1</color></block><block s="down"></block><block s="doRest"><l>0.5</l></block><block s="bubble"><l>Five Point Star Version 2</l></block><block s="setHeading"><l>162</l></block><block s="forward"><l>135</l></block><block s="turn"><l>144</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>135</l></block><block s="turn"><l>144</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>135</l></block><block s="turn"><l>144</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>135</l></block><block s="turn"><l>144</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>135</l></block><block s="setHeading"><l>90</l></block><block s="doRest"><l>1</l></block><block s="up"></block><block s="forward"><l>120</l></block><block s="setSize"><l>9</l></block><block s="setColor"><color>0,3,12,1</color></block><block s="down"></block><block s="doRest"><l>0.5</l></block><block s="bubble"><l>Hexagon</l></block><block s="forward"><l>75</l></block><block s="turn"><l>60</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>75</l></block><block s="turn"><l>60</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>75</l></block><block s="turn"><l>60</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>75</l></block><block s="turn"><l>60</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>75</l></block><block s="turn"><l>60</l></block><block s="doRest"><l>1</l></block><block s="forward"><l>75</l></block><block s="turn"><l>60</l></block><block s="doRest"><l>2</l></block><block s="setEffect"><l><option>ghost</option></l><l>100</l></block><block s="doIfElse"><block s="reportKeyPressed"><l><option>space</option></l></block><script><block s="doWaitUntil"><l><bool>true</bool></l></block><block s="clear"></block></script><script><block s="doStopThis"><l><option>all</option></l></block></script></block><block s="doStopThis"><l><option>all</option></l></block></script><comment x="644" y="2898.4999999999995" w="90" collapsed="false">When the 7 key is pressed, a lot is going to happen and three shapes will be made. I made three shapes. The first shape is a five-point star that doesn&apos;t have any lines inside the shape, the second is a pentagram that is simply drawn with five long lines that go through the shape, and the last shape is a hexagon. The very first thing that the sprite does is set its ghost effect to 0, making it reappear again after it disappears from previous codes. I clear the board with a clear and pen up block, and then set the sprites position. Then I place the pen down and set a unique pen size, which is seven, and a unique pen color, which is pink. The sprite states the shape, which is &quot;Five-Point Star Version 1&quot;, and then the sprite begins making a five-point star. Making a five-point star consists of many repeats and patterns. The star is actually equilateral, so I move a constant of 50 steps each time, so all you have to do is change the angles (all turn clockwise). I make the sprite point in the direction 162 degrees as the starting angle so the star can be properly made upright. The angles then alternate between 72 degrees counterclockwise and 144 degrees clockwise to create a star. I don&apos;t know the mathematics for it, but it was trial and error to get the angles. After the star is complete, the sprite points in direction 90 degrees, it stops saying &quot;Five-Point Star Version 1&quot;, and then it moves forward 150 steps so it can draw the next shape. I put the pen up, then turn the pen size to 8 and pen color to dark red for uniqueness, and after that, I place the pen back down. The sprite then exclames &quot;Five-Point Star Version 2&quot; and begins drawing. This star is easier because it is simply 5 lines that intersect to create a star, and the length of the lines and angle of turn (all clockwise). I first set the direction of the sprite to 162 degrees, the same as the first star, and then the pattern that repeats 5 times to create the star is move 135 steps and turn 144 degrees clockwise to create a star. I used the same degree of turn I used in the first star which is the turn that has a bigger degree, and it worked. After the second star is drawn, I make the sprite point in the direction 90 degrees, lift the pen, move 120 steps to the next position to create the hexagon, set the uniquepen size to 9 and pen color to black, place the pen down, say &quot;Hexagon&quot;, and then begin drawing. Regulgar hexagons are also easy because all angles and sides are equivalent, so I just used a constant pattern. The pattern that is repeated 6 times to create a hexagon (hexagon is a six-sided shape) is move 75 steps and turn 60 degrees clockwise. I stated before that the degree of turn for the sprite is the difference of one interior angle of the shape and 180 degrees, so the turn is 60 degrees. After the hexagon is created, then I ghost the sprite by setting a ghost effect to 100, and then I use the same sequence as I did before about letting the user choose whether to erase the shape or not. If the user presses the spacebar, the shape will be erased and the script will end. If the user does nothing, the shape will stay on the stage until the next script is prompted (each program clears the stage as part of the reset procedure).  </comment></scripts></sprite></sprites></stage><hidden></hidden><headers></headers><code></code><blocks></blocks><variables></variables></project><media name="1.3 Kyle Shapes" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>