{"id":179,"date":"2011-10-16T23:38:25","date_gmt":"2011-10-17T06:38:25","guid":{"rendered":"http:\/\/courses.haigarmen.com\/isma303\/?p=179"},"modified":"2011-10-16T23:38:25","modified_gmt":"2011-10-17T06:38:25","slug":"randomizing-a-line","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/isma303\/randomizing-a-line\/","title":{"rendered":"Randomizing a Line"},"content":{"rendered":"<pre>\nsize(500, 100);\nint step = 10;\n\nfloat lastX = -999;\nfloat lastY = -999;\nfloat y= 50;\n\nint borderY = 20;\n\nfor (int x=20; x-999) {\n    line(x, y, lastX, lastY);\n  }\n  lastX = x;\n  lastY = y;\n}\n<\/pre>\n<p>size(500, 100);<br \/>\nint step = 10;<\/p>\n<p>float lastX = -999;<br \/>\nfloat lastY = -999;<br \/>\nfloat y= 50;<\/p>\n<p>int borderY = 20;<\/p>\n<p>for (int x=20; x-999) {<br \/>\n    line(x, y, lastX, lastY);<br \/>\n  }<br \/>\n  lastX = x;<br \/>\n  lastY = y;<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>size(500, 100); int step = 10; float lastX = -999; float lastY = -999; float y= 50; int borderY = 20; for (int x=20; x-999) { line(x, y, lastX, lastY); } lastX = x; lastY = y; } size(500, 100); int step = 10; float lastX = -999; float lastY = -999; float y= 50; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-179","post","type-post","status-publish","format-standard","hentry","category-exercises"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/posts\/179","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=179"}],"version-history":[{"count":0,"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}