{"id":545,"date":"2012-11-12T15:14:50","date_gmt":"2012-11-12T15:14:50","guid":{"rendered":"http:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/?p=545"},"modified":"2012-11-12T15:14:50","modified_gmt":"2012-11-12T15:14:50","slug":"its-a-head","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/2012\/11\/12\/its-a-head\/","title":{"rendered":"It&#8217;s a Head"},"content":{"rendered":"<p><script type=\"application\/processing\">\r\n\/\/Info: http:\/\/processingjs.org\/reference\r\nvoid setup() {\r\n  size(900, 700);\r\n  background(60);\r\n}\r\n\r\nvoid draw() {\r\n  \/\/head\r\n  stroke(256);\r\n  fill(210, 161, 140);\r\n  ellipse(500, 270, 300, 310);\r\n  rect(350, 270, 160, 240);\r\n  quad(510, 270, 510, 510, 575, 460, 610, 270);\r\n\r\n  \r\n  \/\/eye1\r\n  fill(256, 256, 256);\r\n  stroke(256);\r\n  rect(450, 266, 59, 45, 20, 20, 20, 0);\r\n  fill(0);\r\n  stroke(0);\r\n  ellipse(480, 285, 30, 40);\r\n  fill(256, 256, 256);\r\n  stroke(256);\r\n  ellipse(466, 280, 20, 10);\r\n  \r\n  \/\/eyelid1\r\n  fill(256);\r\n  stroke(210, 161, 140);\r\n  strokeWeight(7);\r\n  arc(440, 356, 270, 191, PI*1.53, PI*1.67);\r\n  line(451, 270, 448, 310);\r\n  strokeWeight(3);\r\n  stroke(0);\r\n  arc(440, 365, 270, 200, PI*1.53, PI*1.67);\r\n  line(447, 278, 458, 266);\r\n  line(454, 270, 450, 310);\r\n  \r\n  \/\/eye2\r\n  fill(256, 256, 256);\r\n  stroke(256);\r\n  rect(355, 266, 59, 45, 20, 20, 20, 0);\r\n  fill(0);\r\n  stroke(0);\r\n  ellipse(385, 285, 30, 40);\r\n  fill(256, 256, 256);\r\n  stroke(256);\r\n  ellipse(371, 280, 20, 10);\r\n  \r\n  \/\/eyelid2\r\n  fill(256);\r\n  stroke(210, 161, 140);\r\n  strokeWeight(7);\r\n  arc(345, 356, 270, 191, PI*1.53, PI*1.67);\r\n  line(356, 270, 353, 310);\r\n  strokeWeight(3);\r\n  stroke(0);\r\n  arc(345, 365, 270, 200, PI*1.53, PI*1.67);\r\n  line(352, 278, 363, 266);\r\n  line(359, 270, 355, 310);\r\n  \r\n  \/\/nose\r\n  fill(210, 161, 140);\r\n  stroke(0);\r\n  strokeWeight(2);\r\n  arc(490, 400, 230, 400, PI, PI+QUARTER_PI);\r\n  line(375, 400, 420, 400);\r\n    \r\n  \/\/eyebrows\r\n  fill(0);\r\n  rect(330, 220, 70, 40);\r\n  beginShape();\r\n    vertex(440, 220);\r\n    vertex(500, 205);\r\n    vertex(530, 225);\r\n    vertex(540, 255);\r\n    vertex(500, 245);\r\n    vertex(440, 260);\r\n    endShape(CLOSE);\r\n    \r\n  \/\/Mouth\r\n  line(385, 450, 480, 440);\r\n  \r\n  \/\/Ear\r\n  fill(210, 161, 140);\r\n  ellipse(590, 310, 50, 100);\r\n  strokeWeight(1);\r\n  ellipse(583, 311, 47, 80);\r\n  stroke(256);\r\n  ellipse(580, 317, 48, 94);\r\n  \r\n  \r\n}\r\n<\/script><\/p>\n<p>It&#8217;s a dude&#8217;s head. I drew simple shapes on paper and then converted them all into code. This was the most tedious processing program I&#8217;ve made yet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s a dude&#8217;s head. I drew simple shapes on paper and then converted them all into code. This was the most tedious processing program I&#8217;ve made yet.<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/545"}],"collection":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/comments?post=545"}],"version-history":[{"count":1,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/545\/revisions"}],"predecessor-version":[{"id":551,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/545\/revisions\/551"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/media?parent=545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/categories?post=545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/tags?post=545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}