{"id":418,"date":"2022-01-31T20:52:24","date_gmt":"2022-01-31T20:52:24","guid":{"rendered":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/?p=418"},"modified":"2022-02-01T16:48:05","modified_gmt":"2022-02-01T16:48:05","slug":"marcos-lopez-small-assignment-2-turtle-geometry","status":"publish","type":"post","link":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/2022\/01\/31\/marcos-lopez-small-assignment-2-turtle-geometry\/","title":{"rendered":"Marcos Lopez Small Assignment 2 &#8211; Turtle Geometry"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"polar-plot\">Polar Plot<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using some of our lessons in class. I messed around using modulus until I created something that looked like a flower to me. They move around and start out very wide and then move petals closer and closer with more and more petals. This one is interactive where you can move the mouse around to make more or less petals and change the size. <\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"800\" data-id=\"456\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot-2-1.jpg\" alt=\"\" class=\"wp-image-456\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot-2-1.jpg 800w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot-2-1-300x300.jpg 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot-2-1-150x150.jpg 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot-2-1-768x768.jpg 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot-2-1-575x575.jpg 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot-2-1-380x380.jpg 380w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"800\" data-id=\"457\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot.jpg\" alt=\"\" class=\"wp-image-457\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot.jpg 800w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot-300x300.jpg 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot-150x150.jpg 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot-768x768.jpg 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot-575x575.jpg 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/screenshot-polar-plot-380x380.jpg 380w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"centered-circle\">Centered Circle<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This one was pretty simple. It really just came down to how much you need to move forward before turning left 1 degree. To solve for the step length first you must find the circumference. Easy enough just use 2*PI*r where r is the radius you enter when you call the function. After that you divide that circumference\/ 360. then you just run through 360 degrees moving forward by the calculated step size each time.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot4.jpg\" alt=\"\" class=\"wp-image-422\" width=\"366\" height=\"366\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot4.jpg 800w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot4-300x300.jpg 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot4-150x150.jpg 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot4-768x768.jpg 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot4-575x575.jpg 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot4-380x380.jpg 380w\" sizes=\"auto, (max-width: 366px) 100vw, 366px\" \/><figcaption>Circle with radius 100<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"flower\">Flower<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This took our idea of rotating a single shape around a circle to create an image. So, I create a single line and loop for the snow cone shape and then rotate it by 360\/the number of petals. Then it repeats until it fully goes around. This problem was surprisingly difficult for me to get the curve correct. I had a hard time finding the radius needed to make the half-circle. I needed to use a right triangle that is created by bisecting the angle given. Then using some trigonometry, we can solve for the radius of half circle.  <\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"800\" data-id=\"427\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot5-1.jpg\" alt=\"\" class=\"wp-image-427\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot5-1.jpg 800w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot5-1-300x300.jpg 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot5-1-150x150.jpg 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot5-1-768x768.jpg 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot5-1-575x575.jpg 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot5-1-380x380.jpg 380w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption>Flower with 20 petals<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"800\" data-id=\"426\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot6-1.jpg\" alt=\"\" class=\"wp-image-426\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot6-1.jpg 800w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot6-1-300x300.jpg 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot6-1-150x150.jpg 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot6-1-768x768.jpg 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot6-1-575x575.jpg 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot6-1-380x380.jpg 380w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption>Flower with 6 petals<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"turtle-designs\">Turtle Designs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I tried to use several different methods to produce these images. For Turtle Design One I used the polygonHalt method while rotating the polygon. It can be changed with different angle parameter. Turtle Design Two was really just me messing around with different rotation and size of steps. Turtle Design 3 was designed by using a random walk and turning 90 degrees randomly. I really liked this one because it reminded me of a city map with off shoots and city centers. <\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"800\" data-id=\"424\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot7.jpg\" alt=\"\" class=\"wp-image-424\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot7.jpg 800w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot7-300x300.jpg 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot7-150x150.jpg 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot7-768x768.jpg 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot7-575x575.jpg 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot7-380x380.jpg 380w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption>Turtle Design One<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"800\" data-id=\"425\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot8.jpg\" alt=\"\" class=\"wp-image-425\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot8.jpg 800w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot8-300x300.jpg 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot8-150x150.jpg 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot8-768x768.jpg 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot8-575x575.jpg 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot8-380x380.jpg 380w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption>Turtle Design two<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"800\" data-id=\"423\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot9.jpg\" alt=\"\" class=\"wp-image-423\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot9.jpg 800w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot9-300x300.jpg 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot9-150x150.jpg 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot9-768x768.jpg 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot9-575x575.jpg 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/01\/screenshot9-380x380.jpg 380w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption>Turtle Design 3<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/MarcosLopezSA2.zip\">https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2022\/02\/MarcosLopezSA2.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Polar Plot Using some of our lessons in class. I messed around using modulus until I created something that looked like a flower to me. They move around and start out very wide and then move petals closer and closer with more and more petals. This one is interactive where you can move the mouse around to make more or [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-418","post","type-post","status-publish","format-standard","hentry","category-small-assignment-2"],"_links":{"self":[{"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts\/418","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/comments?post=418"}],"version-history":[{"count":3,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts\/418\/revisions"}],"predecessor-version":[{"id":599,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts\/418\/revisions\/599"}],"wp:attachment":[{"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/media?parent=418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/categories?post=418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/tags?post=418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}