{"id":140,"date":"2015-06-17T07:23:47","date_gmt":"2015-06-17T03:23:47","guid":{"rendered":"http:\/\/courses.haigarmen.com\/creativecoding\/?p=140"},"modified":"2015-06-17T07:23:47","modified_gmt":"2015-06-17T03:23:47","slug":"exercise-29","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/creativecoding\/exercise-29\/","title":{"rendered":"Exercise 29"},"content":{"rendered":"<p>now let&#8217;s improve our grid sketch by overlapping the circles and giving them a random transparency<\/p>\n<pre><code>\r\nsize(400, 400);\r\nnoStroke();\r\nbackground(255);\r\n\r\nfloat x = 0;\r\nwhile (x < width) {\r\n  float y = 0;\r\n  while (y < height) {\r\n        if (random(100) > 98) {\r\n      fill(255, 0, 0, random(50));\r\n    } \r\n    else {\r\n      \/\/ but usually pick a random gray color\r\n      fill(random(100, 200), random(50));\r\n    }\r\n\r\n    ellipse(x+20, y+20, 40, 40);\r\n    y = y + 20;\r\n  }\r\n  x = x + 20;\r\n}\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>now let&#8217;s improve our grid sketch by overlapping the circles and giving them a random transparency size(400, 400); noStroke(); background(255); float x = 0; while (x < width) { float y = 0; while (y < height) { if (random(100) > 98) { fill(255, 0, 0, random(50)); } else { \/\/ but usually pick a [&hellip;]<\/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-140","post","type-post","status-publish","format-standard","hentry","category-lessons"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/140","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=140"}],"version-history":[{"count":1,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"predecessor-version":[{"id":141,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/140\/revisions\/141"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}