drawing polygons - university college london · 2018-07-26 · smallest number to complete your...
TRANSCRIPT
![Page 1: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/1.jpg)
DrawingPolygons
BEETLEGEOMETRYMODULE2:INVESTIGATION2
![Page 3: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/3.jpg)
Openproject2-DrawingPolygons,saveasacopyandrename.
Runthesetupscript.
Snaptogetheronemoveblockandoneturnblock,settoanyvaluesandclicktheshortscriptseveral<mes(withoutusingrepeat).
MODULE2:[email protected]–DrawingPolygons
![Page 4: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/4.jpg)
Addtherepeatblockaroundyourscriptandsetittothesmallestnumbertocompleteyourpolygoninoneclick.Createascripttodrawasquare.Createascripttodrawatriangle.
MODULE2:[email protected]–DrawingPolygons
![Page 5: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/5.jpg)
DiscussionQues@onsu Howdidyouworkouthowtodrawyoursquareortriangle?
u Howmanysidesdidyourotherpolygonshave?Whatpolygonsdidyoudraw?
u HowmanydegreesdidtheBeetleturnintotaltomakeitaclosedshape?HowmanystepsdidtheBeetlemoveintotal?
u Whatisthelinkbetweenthemoveandrepeatblocksinyourpolygonscripts?
u Didyoumanagetodrawanequilateraltriangle?Howdidyoubuildyourscripttoensureitwasequilateral?
MODULE2:[email protected]–DrawingPolygons
![Page 7: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/7.jpg)
Matchthescriptwiththepolygonthatitwoulddrawwhenyouclickonit.
MODULE2:[email protected]–Unplugged:PolygonScripts
1 2 3 4
![Page 8: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/8.jpg)
Matchthescriptwiththepolygonthatitwoulddrawwhenyouclickonit.
MODULE2:[email protected]–Unplugged:PolygonScripts
1 2 3 4
![Page 9: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/9.jpg)
Fillinthegapsinthetextbelowtoshowhowyouworkedouttheanswer.
MODULE2:[email protected]–Unplugged:PolygonScripts
Thisisthecorrectpolygonbecause:
§ ithas____equalsidesand_____rightangles§ theblocksintherepeatarerun_____<mes§ themoveblockis_____steps§ theBeetlealwaysturnsrightby_____degrees
Thisiscorrectpolygonbecause:
§ ithas_____pairsofequalsidesoppositeeachother,ashorterpairandalongerpair
§ ithas_____rightangles§ theblocksintherepeatarerun_____<mes§ thereare_____moveblocksintherepeat§ thereare_____turnblocksintherepeatandtheBeetlealwaysturnsrightby_____degrees
![Page 10: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/10.jpg)
Fillinthegapsinthetextbelowtoshowhowyouworkedouttheanswer.
MODULE2:[email protected]–Unplugged:PolygonScripts
Thisiscorrectpolygonbecause:
§ ithas_____equalsidesand_____equalangles§ theblocksintherepeatarerun_____<mes§ themoveblockis_____steps§ theBeetlealwaysturnsrightby_____degrees
Thisiscorrectpolygonbecause:
§ ithas_____equalsidesand_____equalangles§ theblocksintherepeatarerun_____<mes§ themoveblockis_____steps§ theBeetlealwaysturnsrightby_____degrees
![Page 12: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/12.jpg)
Con<nuein2-DrawingPolygons,saveasacopyandrename.
GototheMoreBlocksgroupandfindthenewblocksthatarethere.
Experimentwiththesenewblocksbyaddingthemtothetopofyoursquarescriptorinsidethescript.
MODULE2:[email protected]–UsingandDefiningMoreBlocks
![Page 13: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/13.jpg)
DragtheBeetlearoundthestagetodrawsquareswithdifferentcolouredandsizedlines.
MODULE2:[email protected]–UsingandDefiningMoreBlocks
![Page 14: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/14.jpg)
Makeanewblock(1)andgiveyourblockameaningfulnamee.g.square(2).
Dragthehatblock(3)andputitasahatontopofthescriptfordrawingasquare(4).
MODULE2:[email protected]–UsingandDefiningMoreBlocks
![Page 15: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/15.jpg)
DiscussionQues@ons
u Whatisthedifferencebetweenpencolourandpenshade?
u Wheredidyoutryplacingthesetrandompenblocksinyourscript–howdidthischangeyourdrawing?
u Whywoulditbeagoodideatodefineanewblockforascriptyouusemany<mesinyourproject(e.g.drawingasquare)?
u Whyisitimportanttogiveanewblockameaningfulname?
MODULE2:[email protected]–UsingandDefiningMoreBlocks
![Page 17: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/17.jpg)
Con<nuein2-DrawingPolygons,saveasacopyandrename.
Buildascript,usingyoursquareblock,todrawatoweroftwosquares.
MODULE2:[email protected]–CombiningNewBlocks
![Page 18: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/18.jpg)
Makeanothernewblocktrianglewithsidesthatarethesamelengthasyoursquare.
MODULE2:[email protected]–CombiningNewBlocks
![Page 19: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/19.jpg)
Combineyoursquareandtriangleblocksinonescripttodrawahouse.
MODULE2:[email protected]–CombiningNewBlocks
![Page 20: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/20.jpg)
[Extension]Trybuildingscriptstodrawsomeoftheexamplepicturesbelowusingjustthesquareblock.
MODULE2:[email protected]–[Extension]CombiningNewBlocks
![Page 21: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/21.jpg)
DiscussionQues@onsu Whatproblemsdidyouencounterwhenbuildingascriptfor
drawingatoweroftwosquaresandhowdidyousolvethese?
u Howdidyouuseyournewblockstocreateahouse?
u Diddefininganewblockforsquareandtrianglemakeiteasiertodrawthehouse?How?
u Whatproblemsdidyouencounterwhendrawingyourhouse?
u Howdidyoudiscovertheanglethatyouneedtoturnbyinordertodrawtheroofonyourhousecorrectly?
MODULE2:[email protected]–CombiningNewBlocks
![Page 22: Drawing Polygons - University College London · 2018-07-26 · smallest number to complete your polygon in one click. Create a script to draw a square. Create a script to draw a triangle](https://reader030.vdocuments.us/reader030/viewer/2022040917/5e927f617bfde36b86127bf7/html5/thumbnails/22.jpg)
MyInves@ga@on2checklist:
Ibuiltascripttodrawasquare.
Ibuiltascripttodrawanequilateraltriangle.
Ienvisagedwhatpolygonsdifferentscriptswoulddraw.
Iusedpre-definedblockswithinmysquarescripttodrawsquareswithsidesofrandomwidthsandcolours.
Idefinedmyownsquareandtriangleblocks.
Iusedmysquareblocktodrawatower.
Iusedmysquareandtriangleblockstodrawahouse.
MODULE2:INVESTIGATION2