{"id":34,"date":"2015-06-15T02:01:45","date_gmt":"2015-06-14T22:01:45","guid":{"rendered":"http:\/\/courses.haigarmen.com\/creativecoding\/?p=34"},"modified":"2015-06-15T02:09:09","modified_gmt":"2015-06-14T22:09:09","slug":"exercise-02","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/creativecoding\/exercise-02\/","title":{"rendered":"Exercise 02"},"content":{"rendered":"<p>that wasn&#8217;t hard, try this;<\/p>\n<pre>\r\n<code>\r\n\r\n\/\/ the draw() function is called many times per second\r\n\/\/ it's very useful for animating objects\r\n\r\n\/\/ notice the opening and closing of curly braces \r\n\/\/ everything in between them is run many times per second\r\n\r\nvoid draw() {\r\n\/\/ background() erases the screen with a colour\r\n  background(255, 204, 0);\r\n  \r\n  line(   random(100),random(100),   random(100),random(100)   ); \r\n  \r\n}\r\n<\/code>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>that wasn&#8217;t hard, try this; \/\/ the draw() function is called many times per second \/\/ it&#8217;s very useful for animating objects \/\/ notice the opening and closing of curly braces \/\/ everything in between them is run many times per second void draw() { \/\/ background() erases the screen with a colour background(255, 204, [&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-34","post","type-post","status-publish","format-standard","hentry","category-lessons"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/34","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=34"}],"version-history":[{"count":2,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/34\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}