{"id":313,"date":"2012-11-06T02:04:15","date_gmt":"2012-11-06T02:04:15","guid":{"rendered":"http:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/?p=313"},"modified":"2012-11-06T02:04:15","modified_gmt":"2012-11-06T02:04:15","slug":"smeags-clothing","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/2012\/11\/06\/smeags-clothing\/","title":{"rendered":"Smeag&#8217;s clothing"},"content":{"rendered":"<p><script type=\"application\/processing\">\r\nint recX = 300;\r\nint recY = 245;\r\nint rec1X = 300;\r\nint rec1Y = 300;\r\nint rec2X = 130;\r\nint rec2Y = 185;\r\nint rec3X = 460;\r\nint rec3Y = 185;\r\nint rec4X = 300;\r\nint rec4Y = 380;\r\nint rec5X = 275;\r\nint rec5Y = 430;\r\nint rec6X = 325;\r\nint rec6Y = 430;\r\nint rec7X = 300;\r\nint rec7Y = 340;\r\nint rec8X = 300;\r\nint rec8Y = 340;\r\nint rec9X = 325;\r\nint rec9Y = 480;\r\nint rec10X = 275;\r\nint rec10Y = 480;\r\n\r\nint ellX = 300;\r\nint ellY = 100;\r\nint ell1X = 270;\r\nint ell1Y = 70;\r\nint ell2X = 330;\r\nint ell2Y = 70;\r\nint ell3X = 300;\r\nint ell3Y = 140;\r\nint ell4X = 270;\r\nint ell4Y = 70;\r\nint ell5X = 330;\r\nint ell5Y = 70;\r\nint ell6X = 300;\r\nint ell6Y = 100;\r\nint ell7X = 300;\r\nint ell7Y = 148;\r\nint ell8X = 300;\r\nint ell8Y = 25;\r\nint ell9X = 460;\r\nint ell9Y = 100;\r\nint ell10X = 130;\r\nint ell10Y = 100;\r\n\r\n\r\nvoid setup() {\r\n  size(500, 500);\r\n  background(88, 203, 149);\r\n  noStroke();\r\n  rectMode(CENTER);\r\n}\r\n\r\nvoid draw() {\r\n  fill(247, 194, 107);\r\n  \/\/shoulders\r\n  rect(recX, recY, 350, 30);\r\n  fill(113, 110, 101);\r\n  \/\/shirt\r\n  rect(rec1X, rec1Y, 100, 300);\r\n  fill(247, 194, 107);\r\n  \/\/left fore-arm\r\n  rect(rec2X, rec2Y, 30, 150);\r\n  fill(247, 194, 107);\r\n  \/\/right fore-arm\r\n  rect(rec3X, rec3Y, 30, 150);\r\n  fill(118, 89, 7);\r\n  \/\/pants\r\n  rect(rec4X, rec4Y, 100, 80);\r\n  stroke(0);\r\n  fill(118, 89, 7);\r\n  \/\/left leg\r\n  rect(rec5X, rec5Y, 50, 80);\r\n  stroke(0);\r\n  fill(118, 89, 7);\r\n  \/\/right leg\r\n  rect(rec6X, rec6Y, 50, 80);\r\n  fill(0);\r\n  \/\/belt\r\n  rect(rec7X, rec7Y, 100, 20);\r\n  fill(209);\r\n  \/\/belt buckle\r\n  rect(rec8X, rec8Y, 20, 20);\r\n  stroke(87);\r\n  fill(0);\r\n  \/\/right shoe\r\n  rect(rec9X, rec9Y, 50, 35);\r\n  fill(0);\r\n  \/\/left shoe\r\n  rect(rec10X, rec10Y, 50, 35);\r\n  ellipseMode(CENTER);\r\n  stroke(87);\r\n  fill(247, 194, 107);\r\n  \/\/head\r\n  ellipse(ellX, ellY, 180, 180);\r\n  fill(55, 61, 160);\r\n  \/\/left eye\r\n  ellipse(ell1X, ell1Y, 30, 30);\r\n  fill(55, 61, 160);\r\n  \/\/right eye\r\n  ellipse(ell2X, ell2Y, 30, 30);\r\n  fill(234, 50, 50);\r\n  \/\/mouth\r\n  ellipse(ell3X, ell3Y, 80, 30);\r\n  fill(0);\r\n  \/\/left eye pupil\r\n  ellipse(ell4X, ell4Y, 10, 10);\r\n  fill(0);\r\n  \/\/right eye pupil\r\n  ellipse(ell5X, ell5Y, 10, 10);\r\n  fill(247, 194, 107);\r\n  \/\/nose\r\n  ellipse(ell6X, ell6Y, 15, 30);\r\n  fill(240, 161, 145);\r\n  \/\/tounge\r\n  ellipse(ell7X, ell7Y, 40, 10);\r\n  fill(121, 78, 22);\r\n  \/\/hair\r\n  ellipse(ell8X, ell8Y, 130, 30);\r\n  fill(247, 194, 107);\r\n  \/\/right hand\r\n  ellipse(ell9X, ell9Y, 50, 30);\r\n  fill(247, 194, 107);\r\n  \/\/left hand\r\n  ellipse(ell10X, ell10Y, 50, 30);\r\n\r\n\r\n\r\n  if ( mouseY < height\/3) {\r\n    fill(247, 194, 107);\r\n    \/\/shoulders\r\n    rect(recX, recY, 350, 30);\r\n    fill(15, 128, 167);\r\n    \/\/shirt\r\n    rect(rec1X, rec1Y, 100, 300);\r\n    fill(247, 194, 107);\r\n    \/\/left fore-arm\r\n    rect(rec2X, rec2Y, 30, 150);\r\n    fill(247, 194, 107);\r\n    \/\/right fore-arm\r\n    rect(rec3X, rec3Y, 30, 150);\r\n    fill(162);\r\n    \/\/pants\r\n    rect(rec4X, rec4Y, 100, 80);\r\n    stroke(0);\r\n    fill(162);\r\n    \/\/left leg\r\n    rect(rec5X, rec5Y, 50, 80);\r\n    stroke(0);\r\n    fill(162);\r\n    \/\/right leg\r\n    rect(rec6X, rec6Y, 50, 80);\r\n    fill(0);\r\n    \/\/belt\r\n    rect(rec7X, rec7Y, 100, 20);\r\n    fill(209);\r\n    \/\/belt buckle\r\n    rect(rec8X, rec8Y, 20, 20);\r\n    stroke(87);\r\n    fill(0);\r\n    \/\/right shoe\r\n    rect(rec9X, rec9Y, 50, 35);\r\n    fill(0);\r\n    \/\/left shoe\r\n    rect(rec10X, rec10Y, 50, 35);\r\n    ellipseMode(CENTER);\r\n    stroke(87);\r\n    fill(247, 194, 107);\r\n    \/\/head\r\n    ellipse(ellX, ellY, 180, 180);\r\n    fill(55, 61, 160);\r\n    \/\/left eye\r\n    ellipse(ell1X, ell1Y, 30, 30);\r\n    fill(55, 61, 160);\r\n    \/\/right eye\r\n    ellipse(ell2X, ell2Y, 30, 30);\r\n    fill(234, 50, 50);\r\n    \/\/mouth\r\n    ellipse(ell3X, ell3Y, 80, 30);\r\n    fill(0);\r\n    \/\/left eye pupil\r\n    ellipse(ell4X, ell4Y, 10, 10);\r\n    fill(0);\r\n    \/\/right eye pupil\r\n    ellipse(ell5X, ell5Y, 10, 10);\r\n    fill(247, 194, 107);\r\n    \/\/nose\r\n    ellipse(ell6X, ell6Y, 15, 30);\r\n    fill(240, 161, 145);\r\n    \/\/tounge\r\n    ellipse(ell7X, ell7Y, 40, 10);\r\n    fill(121, 78, 22);\r\n    \/\/hair\r\n    ellipse(ell8X, ell8Y, 130, 30);\r\n    fill(247, 194, 107);\r\n    \/\/right hand\r\n    ellipse(ell9X, ell9Y, 50, 30);\r\n    fill(247, 194, 107);\r\n    \/\/left hand\r\n    ellipse(ell10X, ell10Y, 50, 30);\r\n  }\r\n  else if (mouseY < 2*height\/3) {\r\n    fill(247, 194, 107);\r\n    \/\/shoulders\r\n    rect(recX, recY, 350, 30);\r\n    fill(242, 111, 59);\r\n    \/\/shirt\r\n    rect(rec1X, rec1Y, 100, 300);\r\n    fill(247, 194, 107);\r\n    \/\/left fore-arm\r\n    rect(rec2X, rec2Y, 30, 150);\r\n    fill(247, 194, 107);\r\n    \/\/right fore-arm\r\n    rect(rec3X, rec3Y, 30, 150);\r\n    fill(142, 85, 31);\r\n    \/\/pants\r\n    rect(rec4X, rec4Y, 100, 80);\r\n    stroke(0);\r\n    fill(142, 85, 31);\r\n    \/\/left leg\r\n    rect(rec5X, rec5Y, 50, 80);\r\n    stroke(0);\r\n    fill(142, 85, 31);\r\n    \/\/right leg\r\n    rect(rec6X, rec6Y, 50, 80);\r\n    fill(0);\r\n    \/\/belt\r\n    rect(rec7X, rec7Y, 100, 20);\r\n    fill(209);\r\n    \/\/belt buckle\r\n    rect(rec8X, rec8Y, 20, 20);\r\n    stroke(87);\r\n    fill(0);\r\n    \/\/right shoe\r\n    rect(rec9X, rec9Y, 50, 35);\r\n    fill(0);\r\n    \/\/left shoe\r\n    rect(rec10X, rec10Y, 50, 35);\r\n    ellipseMode(CENTER);\r\n    stroke(87);\r\n    fill(247, 194, 107);\r\n    \/\/head\r\n    ellipse(ellX, ellY, 180, 180);\r\n    fill(55, 61, 160);\r\n    \/\/left eye\r\n    ellipse(ell1X, ell1Y, 30, 30);\r\n    fill(55, 61, 160);\r\n    \/\/right eye\r\n    ellipse(ell2X, ell2Y, 30, 30);\r\n    fill(234, 50, 50);\r\n    \/\/mouth\r\n    ellipse(ell3X, ell3Y, 80, 30);\r\n    fill(0);\r\n    \/\/left eye pupil\r\n    ellipse(ell4X, ell4Y, 10, 10);\r\n    fill(0);\r\n    \/\/right eye pupil\r\n    ellipse(ell5X, ell5Y, 10, 10);\r\n    fill(247, 194, 107);\r\n    \/\/nose\r\n    ellipse(ell6X, ell6Y, 15, 30);\r\n    fill(240, 161, 145);\r\n    \/\/tounge\r\n    ellipse(ell7X, ell7Y, 40, 10);\r\n    fill(121, 78, 22);\r\n    \/\/hair\r\n    ellipse(ell8X, ell8Y, 130, 30);\r\n    fill(247, 194, 107);\r\n    \/\/right hand\r\n    ellipse(ell9X, ell9Y, 50, 30);\r\n    fill(247, 194, 107);\r\n    \/\/left hand\r\n    ellipse(ell10X, ell10Y, 50, 30);\r\n  }\r\n  else {\r\n    fill(247, 194, 107);\r\n    \/\/shoulders\r\n    rect(recX, recY, 350, 30);\r\n    fill(211, 217, 234);\r\n    \/\/shirt\r\n    rect(rec1X, rec1Y, 100, 300);\r\n    fill(247, 194, 107);\r\n    \/\/left fore-arm\r\n    rect(rec2X, rec2Y, 30, 150);\r\n    fill(247, 194, 107);\r\n    \/\/right fore-arm\r\n    rect(rec3X, rec3Y, 30, 150);\r\n    fill(48, 68, 121);\r\n    \/\/pants\r\n    rect(rec4X, rec4Y, 100, 80);\r\n    stroke(0);\r\n    fill(48, 68, 121);\r\n    \/\/left leg\r\n    rect(rec5X, rec5Y, 50, 80);\r\n    stroke(0);\r\n    fill(48, 68, 121);\r\n    \/\/right leg\r\n    rect(rec6X, rec6Y, 50, 80);\r\n    fill(0);\r\n    \/\/belt\r\n    rect(rec7X, rec7Y, 100, 20);\r\n    fill(209);\r\n    \/\/belt buckle\r\n    rect(rec8X, rec8Y, 20, 20);\r\n    stroke(87);\r\n    fill(0);\r\n    \/\/right shoe\r\n    rect(rec9X, rec9Y, 50, 35);\r\n    fill(0);\r\n    \/\/left shoe\r\n    rect(rec10X, rec10Y, 50, 35);\r\n    ellipseMode(CENTER);\r\n    stroke(87);\r\n    fill(247, 194, 107);\r\n    \/\/head\r\n    ellipse(ellX, ellY, 180, 180);\r\n    fill(55, 61, 160);\r\n    \/\/left eye\r\n    ellipse(ell1X, ell1Y, 30, 30);\r\n    fill(55, 61, 160);\r\n    \/\/right eye\r\n    ellipse(ell2X, ell2Y, 30, 30);\r\n    fill(234, 50, 50);\r\n    \/\/mouth\r\n    ellipse(ell3X, ell3Y, 80, 30);\r\n    fill(0);\r\n    \/\/left eye pupil\r\n    ellipse(ell4X, ell4Y, 10, 10);\r\n    fill(0);\r\n    \/\/right eye pupil\r\n    ellipse(ell5X, ell5Y, 10, 10);\r\n    fill(247, 194, 107);\r\n    \/\/nose\r\n    ellipse(ell6X, ell6Y, 15, 30);\r\n    fill(240, 161, 145);\r\n    \/\/tounge\r\n    ellipse(ell7X, ell7Y, 40, 10);\r\n    fill(121, 78, 22);\r\n    \/\/hair\r\n    ellipse(ell8X, ell8Y, 130, 30);\r\n    fill(247, 194, 107);\r\n    \/\/right hand\r\n    ellipse(ell9X, ell9Y, 50, 30);\r\n    fill(247, 194, 107);\r\n    \/\/left hand\r\n    ellipse(ell10X, ell10Y, 50, 30);\r\n  }\r\n}\r\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":20,"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\/313"}],"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\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/comments?post=313"}],"version-history":[{"count":1,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/313\/revisions"}],"predecessor-version":[{"id":314,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/313\/revisions\/314"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/media?parent=313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/categories?post=313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/tags?post=313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}