{"id":2763,"date":"2022-04-25T19:17:26","date_gmt":"2022-04-25T23:17:26","guid":{"rendered":"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/?p=2763"},"modified":"2022-05-09T09:42:30","modified_gmt":"2022-05-09T13:42:30","slug":"nested-loop-generating-patterns-gal-ben-baruch","status":"publish","type":"post","link":"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/2022\/04\/25\/nested-loop-generating-patterns-gal-ben-baruch\/","title":{"rendered":"Nested Loop Generating Patterns &#8211; Gal Ben Baruch"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"937\" height=\"750\" src=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-content\/uploads\/sites\/2165\/2022\/05\/nested-loop-1.png\" alt=\"\" class=\"wp-image-2843\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-content\/uploads\/sites\/2165\/2022\/05\/nested-loop-1.png 937w, https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-content\/uploads\/sites\/2165\/2022\/05\/nested-loop-1-300x240.png 300w, https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-content\/uploads\/sites\/2165\/2022\/05\/nested-loop-1-768x615.png 768w\" sizes=\"auto, (max-width: 937px) 100vw, 937px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"748\" src=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-content\/uploads\/sites\/2165\/2022\/05\/nested-loop-2.png\" alt=\"\" class=\"wp-image-2844\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-content\/uploads\/sites\/2165\/2022\/05\/nested-loop-2.png 946w, https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-content\/uploads\/sites\/2165\/2022\/05\/nested-loop-2-300x237.png 300w, https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-content\/uploads\/sites\/2165\/2022\/05\/nested-loop-2-768x607.png 768w\" sizes=\"auto, (max-width: 946px) 100vw, 946px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"948\" height=\"751\" src=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-content\/uploads\/sites\/2165\/2022\/05\/nested-loop-3.png\" alt=\"\" class=\"wp-image-2845\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-content\/uploads\/sites\/2165\/2022\/05\/nested-loop-3.png 948w, https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-content\/uploads\/sites\/2165\/2022\/05\/nested-loop-3-300x238.png 300w, https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-content\/uploads\/sites\/2165\/2022\/05\/nested-loop-3-768x608.png 768w\" sizes=\"auto, (max-width: 948px) 100vw, 948px\" \/><\/figure>\n\n\n\n<p>This is my nested loop\\generating patterns, I used a function to draw in the image, and then translated the x and y after using a nested loop, and added so rotation and random scaling between 1 and 4.<\/p>\n\n\n\n<p>Here is my code: <a href=\"https:\/\/editor.p5js.org\/GalBB\/sketches\/TXhCGCwkH\">https:\/\/editor.p5js.org\/GalBB\/sketches\/TXhCGCwkH<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is my nested loop\\generating patterns, I used a function to draw in the image, and then translated the x and y after using a nested loop, and added so rotation and random scaling between 1 and 4. Here is my code: https:\/\/editor.p5js.org\/GalBB\/sketches\/TXhCGCwkH<\/p>\n","protected":false},"author":4584,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"portfolio_post_id":0,"portfolio_citation":"","portfolio_annotation":"","openlab_post_visibility":"","footnotes":""},"categories":[122],"tags":[],"coauthors":[57],"class_list":["post-2763","post","type-post","status-publish","format-standard","hentry","category-assignment-10-generated-pattern","entry"],"_links":{"self":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-json\/wp\/v2\/posts\/2763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-json\/wp\/v2\/users\/4584"}],"replies":[{"embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-json\/wp\/v2\/comments?post=2763"}],"version-history":[{"count":3,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-json\/wp\/v2\/posts\/2763\/revisions"}],"predecessor-version":[{"id":2847,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-json\/wp\/v2\/posts\/2763\/revisions\/2847"}],"wp:attachment":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-json\/wp\/v2\/media?parent=2763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-json\/wp\/v2\/categories?post=2763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-json\/wp\/v2\/tags?post=2763"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-210-spring-22\/wp-json\/wp\/v2\/coauthors?post=2763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}