{"id":526,"date":"2022-02-01T08:51:47","date_gmt":"2022-02-01T08:51:47","guid":{"rendered":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/?p=526"},"modified":"2022-02-03T06:18:05","modified_gmt":"2022-02-03T06:18:05","slug":"small-assignment-2-connor-frost","status":"publish","type":"post","link":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/2022\/02\/01\/small-assignment-2-connor-frost\/","title":{"rendered":"Small Assignment 2 &#8211; Connor Frost"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello! <br><br>I have divided up the response into sections for each part of the homework. Please find my code attached to this post. <br><br>Thank you<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"problem-1\">Problem 1<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I decided to draw the polar plot by splitting up the drawing of the circular rings indicating the radius and the drawing of the lines indicating the angle from the origin. The drawing of the circles is simply using the ellipse function to draw repeating circles for a finite amount. The drawing of the angled lines take inspiration from some of the exercises in class which drew a line with respect to the angle and the radius for drawing every line up to 360 degrees. I added a little bit of color to remind me of graphing paper.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-1.png\" alt=\"\" class=\"wp-image-528\" width=\"798\" height=\"790\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-1.png 798w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-1-300x297.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-1-768x760.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-1-575x569.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-1-380x376.png 380w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><figcaption>Polar plot generated to solve problem one of SA2<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">EDIT  \/ UPDATE: It appears I mixed up a polar plot with a polar coordinate system. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"problem-2\">Problem 2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To draw a centered circle, there were primarily two tasks for me in solving this: The first being getting to a place that you can start to even draw a circle, and the second being the actual drawing of the circle. I used the penUp procedure and go the radius distance away from the center. After leaving the center and getting to an edge, I used the function that we worked on in class that could plot a circle (primarily, the polygon function with size 1, and an angle increment every so often). By using a bit of math, I determined we can modify the size of the small 1 degree increments to get a custom-sized circle with respect to the specified radius. Here is the result.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"797\" height=\"796\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-2.png\" alt=\"\" class=\"wp-image-530\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-2.png 797w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-2-300x300.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-2-150x150.png 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-2-768x767.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-2-575x574.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-2-380x380.png 380w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><figcaption>Centered circle drawn using the Turtle library<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"problem-3\">Problem 3<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To solve the pedals, I deconstructed the problem into the following solvable components.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Drawing the angled line out of the middle for a pedal. This was solved by turning left at an angle\/2 where angle is calculated by the total number of sides.<\/li><li>Drawing the half-circle. This was probably the trickiest part as I needed to calculate the base of the isosceles triangle from the sides and the angle. To do this, I used the law of cosines to get length of the other side and then divided by 1\/2 to calculate the radius of the circle to draw. The half-circle is easy to draw given the code used in problem 2. There were a few angle adjustments needed to draw the top of the pedal in a non-continuous manner that made returning to the midpoint easier.<\/li><li>Drawing the return line for the pedal. This is simply calculating the remaining angle to close the shape. <\/li><li>Drawing the inside circle is simple as we are allowed to use the ellipse function which is pretty self-explanatory.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">By looping the calculations of the pedals, I was able to abstract out the creation of any flower to a simple function. The results is given in the images below:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"793\" height=\"791\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-3.png\" alt=\"\" class=\"wp-image-531\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-3.png 793w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-3-300x300.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-3-150x150.png 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-3-768x766.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-3-575x574.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-3-380x379.png 380w\" sizes=\"auto, (max-width: 793px) 100vw, 793px\" \/><figcaption>Flower with eleven pedals total<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"789\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-4.png\" alt=\"\" class=\"wp-image-532\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-4.png 787w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-4-300x300.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-4-150x150.png 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-4-768x770.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-4-575x576.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-4-380x381.png 380w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><figcaption>Flower with twenty pedals total<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"problem-4\">Problem 4<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I decided to adopt some of the code from class for my first turtle procedure. This is expanding on some of the code we used in class. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is the revolving spiral example abstracted and expanded upon by introducing the size of the strokes as a variable in the drawing. By increasing the size of the stroke, the spirals get larger and coalesce into a nice image.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"796\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-14.png\" alt=\"\" class=\"wp-image-554\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-14.png 790w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-14-298x300.png 298w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-14-150x150.png 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-14-768x774.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-14-575x579.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-14-380x383.png 380w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><figcaption>Adding size as a factor in creating spirals<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">I personally liked this image because of the structure within the chaos. It starts with a simple square spiral and as the angle increases, more complex shapes form. Star-like shapes form to create the ring but you can still observe general shapes. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"794\" height=\"796\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-16.png\" alt=\"\" class=\"wp-image-562\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-16.png 794w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-16-300x300.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-16-150x150.png 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-16-768x770.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-16-575x576.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-16-380x381.png 380w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><figcaption>Spiraling shapes with a beginning angle of 90, where the polygons grow in both size and angle.<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Drawing circles while on a random walk produces very interesting pictures. Using turtle makes this easy to work on as the position is completely relative.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"591\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-17.png\" alt=\"\" class=\"wp-image-565\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-17.png 602w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-17-300x295.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-17-575x564.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/image-17-380x373.png 380w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><figcaption>Random walk with circles created of random size and random intervals.<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Link to code: https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/ConnorFrostSA2.zip<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello! I have divided up the response into sections for each part of the homework. Please find my code attached to this post. Thank you Problem 1 I decided to draw the polar plot by splitting up the drawing of the circular rings indicating the radius and the drawing of the lines indicating the angle from the origin. The drawing [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,1],"tags":[],"class_list":["post-526","post","type-post","status-publish","format-standard","hentry","category-small-assignment-2","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts\/526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/comments?post=526"}],"version-history":[{"count":6,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts\/526\/revisions"}],"predecessor-version":[{"id":663,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts\/526\/revisions\/663"}],"wp:attachment":[{"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/media?parent=526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/categories?post=526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/tags?post=526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}