{"id":78,"date":"2015-06-16T05:26:36","date_gmt":"2015-06-16T01:26:36","guid":{"rendered":"http:\/\/courses.haigarmen.com\/creativecoding\/?p=78"},"modified":"2015-06-16T05:26:36","modified_gmt":"2015-06-16T01:26:36","slug":"exercise-15","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/creativecoding\/exercise-15\/","title":{"rendered":"Exercise 15"},"content":{"rendered":"<p>Rainbows in a different colour mode<\/p>\n<pre><code>\r\nvoid setup() {\r\n  size(300, 300);\r\n  background(#04B1CE);\r\n  noFill();\r\n  colorMode(HSB);\r\n}\r\n\r\nvoid draw() {\r\n  strokeWeight(random(3, 10));\r\n  stroke(random(255), 255, 255); \/\/ HSB Hue Saturation Brightness\r\n  float rainbow_size = random(200, 270);\r\n  ellipse(150, 350, rainbow_size, rainbow_size);\r\n}\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Rainbows in a different colour mode void setup() { size(300, 300); background(#04B1CE); noFill(); colorMode(HSB); } void draw() { strokeWeight(random(3, 10)); stroke(random(255), 255, 255); \/\/ HSB Hue Saturation Brightness float rainbow_size = random(200, 270); ellipse(150, 350, rainbow_size, rainbow_size); }<\/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-78","post","type-post","status-publish","format-standard","hentry","category-lessons"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/78","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=78"}],"version-history":[{"count":1,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":79,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/78\/revisions\/79"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}