{"id":476,"date":"2012-11-12T09:24:41","date_gmt":"2012-11-12T09:24:41","guid":{"rendered":"http:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/?p=476"},"modified":"2012-11-12T17:11:14","modified_gmt":"2012-11-12T17:11:14","slug":"nature-1","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/2012\/11\/12\/nature-1\/","title":{"rendered":"Nature 1"},"content":{"rendered":"<p>For this piece I wanted to do something representing the different seasons. The tree changes between how it would be seen in the different seasons depending on what quarter of the canvas the mouse is on.<br \/>\nPImage myPicture;<br \/>\nPImage myPicture2;<br \/>\nPImage myPicture3;<br \/>\nPImage myPicture4;<\/p>\n<p>void setup(){<br \/>\n  size(500,400);<br \/>\n  myPicture = loadImage(&#8220;treeeee.png&#8221;);<br \/>\n  myPicture2 = loadImage(&#8220;summer.png&#8221;);<br \/>\n  myPicture3 = loadImage(&#8220;fall.png&#8221;);<br \/>\n  myPicture4 = loadImage(&#8220;winter.png&#8221;);<br \/>\n}<\/p>\n<p>void draw(){<br \/>\n  if (mouseX<width\/4){\n   background(myPicture);\n }else if (mouseX<width\/2){\n   background(myPicture2);\n }else if (mouseX<3*width\/4){\n   background(myPicture3);\n }else{\n   background(myPicture4);\n }\n}\n\n(I'm not entirely sure I have the images uploaded in the right place\/attached properly so it may not come up right now, but the processing code is set.)\n\nEDIT: Yeah, it didn't seem to come up right. I tried again with my other pieces and couldn't really get anything to work there either.\n\nI'm unable to get my projects to load properly on the blog currently, so I'm just going to post the code for the time being, and will probably upload a screen shot later or something to show what it should look like when working.\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For this piece I wanted to do something representing the different seasons. The tree changes between how it would be seen in the different seasons depending on what quarter of the canvas the mouse is on. PImage myPicture; PImage myPicture2; &hellip; <a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/2012\/11\/12\/nature-1\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":8,"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\/476"}],"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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/comments?post=476"}],"version-history":[{"count":7,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/476\/revisions"}],"predecessor-version":[{"id":609,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/476\/revisions\/609"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/media?parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/categories?post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/tags?post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}