{"id":118,"date":"2011-10-16T23:32:31","date_gmt":"2011-10-17T06:32:31","guid":{"rendered":"http:\/\/courses.haigarmen.com\/isma303\/?p=118"},"modified":"2011-10-16T23:32:31","modified_gmt":"2011-10-17T06:32:31","slug":"more-random-circles","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/isma303\/more-random-circles\/","title":{"rendered":"More Random Circles"},"content":{"rendered":"<p>This example builds on the random circle exercise by constraining the random colour aspect of the sketch and only draws circles not ellipses.<\/p>\n<pre>\nsize(600,600);\nsmooth();\n\nint circleNum = 50;\nnoStroke();\n\nfor (int i = 0; i&lt;= circleNum; i += 1) {\n  fill(random(200, 255), random(100,200), random(100,200), random(100,255));\n  float randomDiam = random(width);\n  ellipse(random(width), random(height), randomDiam, randomDiam);\n}\n<\/pre>\n<p>size(600,600);<br \/>\nsmooth();<\/p>\n<p>int circleNum = 50;<br \/>\nnoStroke();<\/p>\n<p>for (int i = 0; i &lt;= circleNum; i += 1) {<br \/>\n  fill(random(200, 255), random(100,200), random(100,200), random(100,255));<br \/>\n  float randomDiam = random(width);<br \/>\n  ellipse(random(width), random(height), randomDiam, randomDiam);<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This example builds on the random circle exercise by constraining the random colour aspect of the sketch and only draws circles not ellipses. size(600,600); smooth(); int circleNum = 50; noStroke(); for (int i = 0; i&lt;= circleNum; i += 1) { fill(random(200, 255), random(100,200), random(100,200), random(100,255)); float randomDiam = random(width); ellipse(random(width), random(height), randomDiam, randomDiam); } [&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-118","post","type-post","status-publish","format-standard","hentry","category-articles"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":0,"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}