{"id":511,"date":"2012-11-12T15:01:10","date_gmt":"2012-11-12T15:01:10","guid":{"rendered":"http:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/?p=511"},"modified":"2012-11-12T15:01:10","modified_gmt":"2012-11-12T15:01:10","slug":"project-1-part-3","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/2012\/11\/12\/project-1-part-3\/","title":{"rendered":"Project 1 &#8211; Part 3"},"content":{"rendered":"<p>This is way more in keeping with the sky projects I planned on doing. It is someone looking up at the clouds moving across the sky on a clear day. The code for it is really similar to the code from the rain sketch, so this one was much easier to do than the others in my opinion. Sorry that the clouds are just lame circles I was trying to make then more cloud shaped, but I couldn\u2019t really get it right.<\/p>\n<p><script type=\"application\/processing\">\r\nCloud c1;\r\n\r\nint numPuffs = 40;\r\nCloud[] puffs = new Cloud[numPuffs];\r\n\r\n\r\nvoid setup(){\r\n  size(400,400);\r\n  \r\n  for(int i=0; i < puffs.length; i++){\r\n    puffs[i] = new Cloud();\r\n    c1 = new Cloud();\r\n  }\r\n}\r\n\r\nvoid draw(){\r\n  background (135,206,250);\r\n  \r\n  for (int i=0; i<puffs.length; i++){\r\n  puffs[i].fall();\r\n  }\r\n} \r\n\r\n\r\n\r\nclass Cloud {\r\n  float x = random(-width);\r\n  float y = random(height);\r\n  \r\n  void fall(){\r\n    x = x + 2;\r\n    y = y + random(-2,2);\r\n    fill(238,238,224,70);\r\n    stroke(245,245,245,70);\r\n    ellipse(x,y,random(50,75),random(50,75));\r\n    \r\n    if (x>width){\r\n      x = random(-400);\r\n      y = random(400);\r\n    }\r\n  }\r\n}\r\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is way more in keeping with the sky projects I planned on doing. It is someone looking up at the clouds moving across the sky on a clear day. The code for it is really similar to the code &hellip; <a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/2012\/11\/12\/project-1-part-3\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"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\/511"}],"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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/comments?post=511"}],"version-history":[{"count":1,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/511\/revisions"}],"predecessor-version":[{"id":512,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/511\/revisions\/512"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/media?parent=511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/categories?post=511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/tags?post=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}