{"id":572,"date":"2012-11-12T15:42:50","date_gmt":"2012-11-12T15:42:50","guid":{"rendered":"http:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/?p=572"},"modified":"2012-11-12T15:42:50","modified_gmt":"2012-11-12T15:42:50","slug":"bee","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/2012\/11\/12\/bee\/","title":{"rendered":"Bee"},"content":{"rendered":"<p>Every flower corresponds to one third of the layout.  Each flower supposed to lose its pollen as the bee crosses its boundaries. <\/p>\n<p><script type=\"application\/processing\">\r\n\r\n\/\/plant stem\r\n\r\n\r\nfloat xtime = 0.0;  \r\nfloat ytime = 100.0;\r\nfloat increment = 0.01;  \r\n\r\nvoid setup() {   \r\n  size(600, 600);\r\n  background(39, 133, 191);\r\n  smooth(); \r\n  ellipseMode(CENTER);\r\n  fill(0);\r\n  ellipse(100, 100, 16, 16);\r\n}   \r\n\r\nvoid draw() {   \r\n  background(39, 133, 191);\r\n  rectMode(CENTER);\r\n  fill(50, 157, 43);\r\n  rect(100, 470, 5, 270);\r\n  fill(63, 157, 57);\r\n  rect(372, 492, 5, 220);\r\n  fill(50, 157, 43);\r\n  rect(530, 526, 5, 150);\r\n  ellipseMode(CENTER);\r\n  fill(201, 47, 129);\r\n  stroke(234, 21, 75);\r\n  ellipse(130, 335, 60, 20);\r\n  fill(201, 47, 129);\r\n  stroke(234, 21, 75);\r\n  ellipse(70, 335, 60, 20);\r\n  fill(201, 47, 129);\r\n  stroke(234, 21, 75);\r\n  ellipse(100, 365, 20, 60);\r\n  fill(201, 47, 129);\r\n  stroke(234, 21, 75);\r\n  ellipse(100, 305, 20, 60);\r\n  fill(234, 96, 31);\r\n  stroke(211, 41, 15);\r\n  ellipse(100, 335, 30, 30);\r\n  fill(227, 219, 172);\r\n  stroke(240, 211, 46);\r\n  ellipse(352, 382, 35, 10);\r\n  fill(227, 219, 172);\r\n  stroke(240, 211, 46);\r\n  ellipse(392, 382, 35, 10);\r\n  fill(227, 219, 172);\r\n  stroke(240, 211, 46);\r\n  ellipse(372, 362, 10, 35);\r\n  fill(227, 219, 172);\r\n  stroke(240, 211, 46);\r\n  ellipse(372, 362, 10, 35);\r\n  fill(227, 219, 172);\r\n  stroke(240, 211, 46);\r\n  ellipse(372, 402, 10, 35);\r\n  noStroke();\r\n  fill(224, 134, 23);\r\n  ellipse(372, 382, 20, 20);\r\n  noStroke();\r\n  fill(198, 24, 71);\r\n  ellipse(372, 382, 10, 10);\r\n  fill(227, 219, 172);\r\n  fill(240, 109, 22);\r\n  stroke(234, 140, 17);\r\n  ellipse(510, 451, 40, 13);\r\n  fill(240, 109, 22);\r\n  stroke(234, 140, 17);\r\n  ellipse(550, 451, 40, 13);\r\n  fill(240, 109, 22);\r\n  stroke(234, 140, 17);\r\n  ellipse(530, 431, 13, 40);\r\n  fill(240, 109, 22);\r\n  stroke(234, 140, 17);\r\n  ellipse(530, 471, 13, 40);\r\n  ellipseMode(CENTER);\r\n  fill(240, 207, 22);\r\n  noStroke();\r\n  ellipse(530, 451, 20, 20);\r\n  float x = noise(xtime)*width;  \r\n  float y = noise(2*ytime)*height;  \r\n  xtime += increment;  \r\n  ytime += increment;  \r\n  \/\/ Draw the ellipse with size determined by Perlin noise  \r\n  stroke(0);\r\n  fill(237, 230, 17);  \r\n  ellipse(x, y, 16, 16);\r\n  if ( x < width\/3) {\r\n    fill(162);\r\n    stroke(211, 41, 15);\r\n    ellipse(100, 335, 30, 30);\r\n  }\r\n  \/\/else if ( x< 2*width\/3); \r\n  \/\/{\r\n    \/\/noStroke();\r\n    \/\/fill(224, 134, 23);\r\n   \/\/ ellipse(162);\r\n   \/\/ noStroke();\r\n   \/\/ fill(87);\r\n   \/\/ ellipse(372, 382, 10, 10);\r\n  \/\/}\r\n  \/\/else {\r\n  \/\/ ellipseMode(CENTER);\r\n    \/\/fill(162);\r\n    \/\/noStroke();\r\n    \/\/ellipse(530, 451, 20, 20);\r\n \/\/ }\r\n}\r\n\r\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every flower corresponds to one third of the layout. Each flower supposed to lose its pollen as the bee crosses its boundaries.<\/p>\n","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\/572"}],"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=572"}],"version-history":[{"count":1,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/572\/revisions"}],"predecessor-version":[{"id":579,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/572\/revisions\/579"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/media?parent=572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/categories?post=572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/tags?post=572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}