{"id":254,"date":"2015-06-18T05:38:16","date_gmt":"2015-06-18T01:38:16","guid":{"rendered":"http:\/\/courses.haigarmen.com\/creativecoding\/?p=254"},"modified":"2015-06-23T09:07:44","modified_gmt":"2015-06-23T05:07:44","slug":"exercise-34","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/creativecoding\/exercise-34\/","title":{"rendered":"Exercise 34"},"content":{"rendered":"<pre><code>size(500,100);\r\nbackground(255);\r\nstrokeWeight(5);\r\nsmooth();\r\n\r\nint step = 10;\r\nfloat lastX = -999;\r\nfloat lastY = -999;\r\n\r\nfloat y = 50;\r\nint borderX = 20;\r\nint borderY = 20;\r\nfor( int x = borderX; x <=width-borderX; x +=step) {\r\n  y = borderY + random(height - 2 * borderY);\r\n  if (lastX > -999) {\r\n    line(x, y, lastX, lastY);\r\n  }\r\n  lastX = x;\r\n  lastY = y;\r\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>size(500,100); background(255); strokeWeight(5); smooth(); int step = 10; float lastX = -999; float lastY = -999; float y = 50; int borderX = 20; int borderY = 20; for( int x = borderX; x -999) { line(x, y, lastX, lastY); } lastX = x; lastY = y; }<\/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-254","post","type-post","status-publish","format-standard","hentry","category-lessons"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/254","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=254"}],"version-history":[{"count":1,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/254\/revisions"}],"predecessor-version":[{"id":255,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/254\/revisions\/255"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/media?parent=254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/categories?post=254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/tags?post=254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}