{"id":114,"date":"2015-06-17T03:38:22","date_gmt":"2015-06-16T23:38:22","guid":{"rendered":"http:\/\/courses.haigarmen.com\/creativecoding\/?p=114"},"modified":"2015-06-17T07:04:57","modified_gmt":"2015-06-17T03:04:57","slug":"exercise-23","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/creativecoding\/exercise-23\/","title":{"rendered":"Exercise 23"},"content":{"rendered":"<p>Continuing our experiments with rotation<\/p>\n<p>Think of the rotate() function like sticking a pin into the top left (0,0) corner of our piece of paper (our canvas) and turning the paper around the pin axis.<\/p>\n<pre><code>\r\nfloat r = 0;\r\n\r\nvoid setup() {\r\n  size(400,400);\r\n  background(10);\r\n  smooth();\r\n  noStroke();\r\n}\r\nvoid draw() {\r\n  fill(255);\r\n  rotate(r);\r\n  float circle_size = random(5, 15);\r\n  ellipse(100 + r, 10, circle_size, circle_size);\r\n  r = r + 0.2;\r\n  println(r);\r\n}\r\n\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Continuing our experiments with rotation Think of the rotate() function like sticking a pin into the top left (0,0) corner of our piece of paper (our canvas) and turning the paper around the pin axis. float r = 0; void setup() { size(400,400); background(10); smooth(); noStroke(); } void draw() { fill(255); rotate(r); float circle_size = [&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-114","post","type-post","status-publish","format-standard","hentry","category-lessons"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/114","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=114"}],"version-history":[{"count":4,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/114\/revisions\/131"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}