{"id":122,"date":"2015-06-17T04:07:06","date_gmt":"2015-06-17T00:07:06","guid":{"rendered":"http:\/\/courses.haigarmen.com\/creativecoding\/?p=122"},"modified":"2015-06-17T07:05:16","modified_gmt":"2015-06-17T03:05:16","slug":"exercise-25","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/creativecoding\/exercise-25\/","title":{"rendered":"Exercise 25"},"content":{"rendered":"<p>now let&#8217;s nest a while loop inside another while loop to give us a grid<\/p>\n<pre><code>\r\n\r\nsize(400, 400);\r\nnoStroke();\r\nbackground(50);\r\n\r\nfloat x = 0;\r\nwhile (x < width) {\r\n  float y = 0;\r\n  while (y < height) {\r\n    rect(x, y, 30, 30);\r\n    y = y + 40;\r\n  }\r\n  x = x + 50;\r\n}\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>now let&#8217;s nest a while loop inside another while loop to give us a grid size(400, 400); noStroke(); background(50); float x = 0; while (x < width) { float y = 0; while (y < height) { rect(x, y, 30, 30); y = y + 40; } x = x + 50; }\n<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","category-lessons"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/comments?post=122"}],"version-history":[{"count":5,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":133,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/122\/revisions\/133"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/media?parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/categories?post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/tags?post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}