{"id":95,"date":"2015-06-17T02:53:08","date_gmt":"2015-06-16T22:53:08","guid":{"rendered":"http:\/\/courses.haigarmen.com\/creativecoding\/?p=95"},"modified":"2015-06-17T07:00:09","modified_gmt":"2015-06-17T03:00:09","slug":"exercise-21","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/creativecoding\/exercise-21\/","title":{"rendered":"Exercise 21"},"content":{"rendered":"<p>drawing circles with a While loop<br \/>\ntry changing the increment that i is increased by.<\/p>\n<pre><code>\r\nsize(400, 400);\r\ncolorMode(HSB);\r\n\/\/ choose a random background color using Hue, Saturation and Brightness\r\nbackground(random(255), random(50, 100), random(50, 100));\r\nnoFill();\r\nstroke(255, 100);\r\n\r\nfloat i = 0;\r\nwhile (i < 100) {\r\n  ellipse(100 + i*2, 100 + i*2, 100+i, 100-i*2);\r\n  \/\/ ellipse(width\/2 + i, height\/2-i, 100+i*5, 100-i*5);\r\n  i = i + 1;\r\n}\r\nprint(\"end\");\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>drawing circles with a While loop try changing the increment that i is increased by. size(400, 400); colorMode(HSB); \/\/ choose a random background color using Hue, Saturation and Brightness background(random(255), random(50, 100), random(50, 100)); noFill(); stroke(255, 100); float i = 0; while (i < 100) { ellipse(100 + i*2, 100 + i*2, 100+i, 100-i*2); \/\/ [&hellip;]\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-95","post","type-post","status-publish","format-standard","hentry","category-lessons"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/95","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=95"}],"version-history":[{"count":5,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":129,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/95\/revisions\/129"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/categories?post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/tags?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}