{"id":680,"date":"2009-10-01T10:16:25","date_gmt":"2009-10-01T16:16:25","guid":{"rendered":"http:\/\/alliwalk.com\/blog\/?p=680"},"modified":"2009-10-29T10:32:44","modified_gmt":"2009-10-29T16:32:44","slug":"icm-week-3-functions-for-loops-and-if-statements","status":"publish","type":"post","link":"https:\/\/alliwalk.com\/blog\/2009\/10\/icm-week-3-functions-for-loops-and-if-statements\/","title":{"rendered":"ICM Week 3: Functions, &#8216;For Loops&#8217;, and &#8216;If&#8217; statements"},"content":{"rendered":"<p>This week it got serious. We were using a bunch of Processing methods &#8211; if statements, loops and functions &#8211; which at the time was a big deal to me, since in practice I still didn&#8217;t really understand how to put it all together.<\/p>\n<p>But, I found some residents to help me out and explain how things worked. They also introduced the &#8216;Switch&#8217; statement, a more efficient &#8216;if&#8217; statement, which later came in handy for my midterm project. So, while the finished product looks the same as last week, when you check out the code you&#8217;ll see that the two sketches are very different.<\/p>\n<p><a href=\"http:\/\/alliwalk.com\/blog\/wp-content\/uploads\/2009\/10\/icmweek2.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-674\" title=\"ICM Week 2\" src=\"http:\/\/alliwalk.com\/blog\/wp-content\/uploads\/2009\/10\/icmweek2.png\" alt=\"ICM Week 2\" width=\"700\" height=\"67\" srcset=\"https:\/\/alliwalk.com\/blog\/wp-content\/uploads\/2009\/10\/icmweek2.png 700w, https:\/\/alliwalk.com\/blog\/wp-content\/uploads\/2009\/10\/icmweek2-300x28.png 300w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/alliwalk.com\/ICM2009\/week3\/\">Color bars, Week 3: Switch, Ifs and For Loops<\/a><\/p>\n<p>(Written Oct 29, 2009)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week it got serious. We were using a bunch of Processing methods &#8211; if statements, loops and functions &#8211; which at the time was a big deal to me, since in practice I still didn&#8217;t really understand how to put it all together. But, I found some residents to help me out and explain &hellip; <a href=\"https:\/\/alliwalk.com\/blog\/2009\/10\/icm-week-3-functions-for-loops-and-if-statements\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;ICM Week 3: Functions, &#8216;For Loops&#8217;, and &#8216;If&#8217; statements&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,84,76],"tags":[85],"_links":{"self":[{"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/posts\/680"}],"collection":[{"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/comments?post=680"}],"version-history":[{"count":2,"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/posts\/680\/revisions"}],"predecessor-version":[{"id":682,"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/posts\/680\/revisions\/682"}],"wp:attachment":[{"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/media?parent=680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/categories?post=680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/tags?post=680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}