{"id":142,"date":"2015-06-17T07:33:58","date_gmt":"2015-06-17T03:33:58","guid":{"rendered":"http:\/\/courses.haigarmen.com\/creativecoding\/?p=142"},"modified":"2015-06-17T08:10:15","modified_gmt":"2015-06-17T04:10:15","slug":"exercise-30","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/creativecoding\/exercise-30\/","title":{"rendered":"Exercise 30"},"content":{"rendered":"<p>Let&#8217;s replace our while loop with a For Loop to see how it works<\/p>\n<pre><code>\r\nint ellipseSize = 40;\r\n\r\nvoid setup() {\r\n  size(800, 800);\r\n  smooth();\r\n}\r\n\r\nvoid draw() {\r\n  noFill();\r\n  strokeWeight(.5);\r\n  stroke(255);\r\n  for (int i=0; i <100; i ++) {\r\n    for (int j=0; j <100; j ++) {\r\n    ellipse(i * (ellipseSize\/2), j * (ellipseSize\/2), ellipseSize, ellipseSize);\r\n  }\r\n  }\r\n}\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s replace our while loop with a For Loop to see how it works int ellipseSize = 40; void setup() { size(800, 800); smooth(); } void draw() { noFill(); strokeWeight(.5); stroke(255); for (int i=0; i<\/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-142","post","type-post","status-publish","format-standard","hentry","category-lessons"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/142","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=142"}],"version-history":[{"count":1,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":143,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/142\/revisions\/143"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/media?parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/categories?post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/tags?post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}