{"id":137,"date":"2011-10-16T22:11:38","date_gmt":"2011-10-17T05:11:38","guid":{"rendered":"http:\/\/courses.haigarmen.com\/isma303\/?p=137"},"modified":"2011-10-16T22:11:38","modified_gmt":"2011-10-17T05:11:38","slug":"drawing-circles-the-hard-way","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/isma303\/drawing-circles-the-hard-way\/","title":{"rendered":"Drawing Circles (the hard way)"},"content":{"rendered":"<p>First we took a basic line and reconstructed it the hard way in order to alter that line in interesting random ways. Now we&#8217;re going to do the same with the circle. You know the drill, first we draw a circle the hard way:<\/p>\n<pre>\n\/\/ a simple circle drawn by rotating dots around a constant radius\n\nstroke(0,60);\nnoFill();\n\/\/ ellipse(width\/2, height\/2, radius*2, radius *2);\n\nfloat x, y;\nfloat lastX = -999;\nfloat lastY = -999;\n\nsize(500,500);\nbackground(255);\nstrokeWeight(3);\nfloat radius = 100;\nsmooth();\n\nfor (float ang = 0; ang float rad = radians(ang); \/\/ this converts degrees into radians\n   x = width\/2 + (radius * cos(rad));\n   y = height\/2 + (radius * sin(rad));\n   point(x,y);\n}<\/pre>\n<p>Next we turn a <strong><a href=\"circle-into-a-spiral\">circle into a spiral<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First we took a basic line and reconstructed it the hard way in order to alter that line in interesting random ways. Now we&#8217;re going to do the same with the circle. You know the drill, first we draw a circle the hard way: \/\/ a simple circle drawn by rotating dots around a constant [&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-137","post","type-post","status-publish","format-standard","hentry","category-exercises"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/posts\/137","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=137"}],"version-history":[{"count":0,"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/posts\/137\/revisions"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/categories?post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma303\/wp-json\/wp\/v2\/tags?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}