{"id":540,"date":"2012-11-12T15:14:24","date_gmt":"2012-11-12T15:14:24","guid":{"rendered":"http:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/?p=540"},"modified":"2012-11-16T02:17:49","modified_gmt":"2012-11-16T02:17:49","slug":"naturemachine-project-2","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/2012\/11\/12\/naturemachine-project-2\/","title":{"rendered":"Nature\/Machine Project 2"},"content":{"rendered":"<p>For my second project, I had used the rain idea and tried to make ripples on a water surface.<br \/>\nAfter some playing around, I noticed that the way the ripples were created seemed to approximate bacterial growth patterns.<br \/>\nThe code is very simple right now, so I hope to go back and refine the way it places the &#8216;bacteria.&#8217;<\/p>\n<p>noise(); does not seem to work properly on the blog, at least how I have it. Here is the code for now, I will be working on fixing it.<\/p>\n<p>float x, y;<br \/>\nint i = 0;<\/p>\n<p>void setup(){<br \/>\n  size(500,500);<br \/>\n  background(235,235,230);<br \/>\n  frameRate(15);<br \/>\n  smooth();<br \/>\n}<\/p>\n<p>void draw(){<br \/>\n  x = noise(i)*width;<br \/>\n  y = noise(i+20)*height;<br \/>\n  \/\/background(90,150,230,50);<br \/>\n  if(frameCount%3==0){<br \/>\n    strokeWeight(7);<br \/>\n    fill(70,70,100,220);<br \/>\n    stroke(50,150,100);<br \/>\n    ellipse(x,y,20,20);<br \/>\n    strokeWeight(4);<br \/>\n    fill(90,150,230,40);<br \/>\n    stroke(255,255,255,50);<br \/>\n    ellipse(x+2,y-2,20,20);<br \/>\n  }<br \/>\n  i+=1;<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For my second project, I had used the rain idea and tried to make ripples on a water surface. After some playing around, I noticed that the way the ripples were created seemed to approximate bacterial growth patterns. The code &hellip; <a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/2012\/11\/12\/naturemachine-project-2\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":9,"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\/540"}],"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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/comments?post=540"}],"version-history":[{"count":6,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/540\/revisions"}],"predecessor-version":[{"id":697,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/540\/revisions\/697"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/media?parent=540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/categories?post=540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/tags?post=540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}