{"id":469,"date":"2012-11-12T05:54:54","date_gmt":"2012-11-12T05:54:54","guid":{"rendered":"http:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/?p=469"},"modified":"2012-11-12T05:54:54","modified_gmt":"2012-11-12T05:54:54","slug":"nature-vs-machine-sketch-2","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/2012\/11\/12\/nature-vs-machine-sketch-2\/","title":{"rendered":"Nature vs. Machine Sketch 2"},"content":{"rendered":"<p>My second sketch characterizes the darker side of the Nature\/Machine interaction. We see a clear blue sky, but whenever we interact with it (read as: mouse over it) a black stain starts to appear. This is the inevitability of destruction. Could this be smoke in our atmosphere? Possibly. What happens when you click? what about when you hold the cursor still and click? Does it get better or worse&#8230;.<\/p>\n<p><script type=\"application\/processing\">\r\nint diam =10;\r\nfloat centX, centY;\r\nfloat xstart,xnoise,ynoise;\r\n\r\n\r\nvoid setup() {\r\n  size (500, 300);\r\n  frameRate(24);\r\n  smooth();\r\n  background(#98D7FF);\r\n  centX=width\/2;\r\n  centY=height\/2;\r\n  stroke(0);\r\n  strokeWeight(1);\r\n  xstart = random(10);\r\n  xnoise = xstart;\r\n  ynoise = random(10);\r\n  for (int y = 0;y<=height; y+=5){\r\n    ynoise += 0.1;\r\n    xnoise = xstart;\r\n    for (int x = 0; x<= width; x+=5){\r\n      xnoise +=0.1;\r\n      drawPoint(x,y,noise(xnoise,ynoise));\r\n    }\r\n  }\r\n  \r\n}\r\n\r\n\/\/drawing the background\r\n\r\n\r\nvoid drawPoint(float x, float y, float noiseFactor) {\r\n  pushMatrix();\r\n  translate(x, y);\r\n  rotate(noiseFactor * radians(540));\r\n  float edgeSize = noiseFactor * 35;\r\n  float grey = 150 + (noiseFactor *120);\r\n  \/\/float alph = 63 + (noiseFactor *120);\r\n  float alph = 67;\r\n  noStroke();\r\n  fill(grey, alph);\r\n  \/\/fill(random(255),random(255),random(255), alph);\r\n  ellipse(0, 0, edgeSize, edgeSize\/2);\r\n  popMatrix();\r\n}\r\nvoid draw() {\r\n  fill(0, 25);\r\n  \/\/#4470C6\r\n  if (diam <=400) {\r\n    ellipse(mouseX, mouseY, diam, diam);\r\n   \/\/ diam +=10;\r\n  }\r\n}\r\n\r\nvoid mouseClicked() {\r\nfor (int i = 0; i < 4; i = i+1) {\r\n    fill(0, 25);\r\n   \/\/diam = i\r\n  diam +=10;\r\n   ellipse(mouseX, mouseY, diam, diam);\r\n  }\r\n}<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>My second sketch characterizes the darker side of the Nature\/Machine interaction. We see a clear blue sky, but whenever we interact with it (read as: mouse over it) a black stain starts to appear. This is the inevitability of destruction. &hellip; <a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/2012\/11\/12\/nature-vs-machine-sketch-2\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":19,"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\/469"}],"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\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/comments?post=469"}],"version-history":[{"count":1,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/469\/revisions"}],"predecessor-version":[{"id":470,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/469\/revisions\/470"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/media?parent=469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/categories?post=469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/tags?post=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}