{"id":284,"date":"2012-11-05T15:08:24","date_gmt":"2012-11-05T15:08:24","guid":{"rendered":"http:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/?p=284"},"modified":"2012-11-05T15:08:24","modified_gmt":"2012-11-05T15:08:24","slug":"jayson-corey-2nd-post","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/2012\/11\/05\/jayson-corey-2nd-post\/","title":{"rendered":"Jayson Corey, 2nd Post"},"content":{"rendered":"<p>Here is my second homework assignment, aka the four challenges. The first one came out rather&#8230; odd when you look at the code, but I really enjoyed the other three.<\/p>\n<p><script type=\"application\/processing\">\r\nsize (500, 500);\r\nrectMode (CENTER);\r\nint rectValue1 = 0;\r\nint rectValue2 = 10;\r\nint rectValue3 = 20;\r\nint rectValue4 = 100;\r\nint filling = 255;\r\nint squareCord = 40;\r\nint squareSize = 50;\r\nint sparta = 300;\r\nint lessThanSparta = 200;\r\nint lineStart = 175;\r\nint lineEnd = 500;\r\nint tri1 = 75;\r\nint tri2 = 425;\r\n\r\nnoFill ();\r\nrect (rectValue1, rectValue3, rectValue2, rectValue4);\r\nrect (rectValue3, rectValue1, rectValue4, rectValue2);\r\n\r\nfill (filling);\r\nrect (squareCord, squareCord, squareSize, squareSize);\r\nellipse (sparta, sparta, lessThanSparta, lessThanSparta);\r\n\r\nnoFill ();\r\nellipse (sparta, sparta, rectValue4, rectValue4);\r\nellipse (sparta, sparta, squareSize, squareSize);\r\nline (lineStart, lineStart, lineEnd, lineEnd);\r\n\r\nfill (filling);\r\ntriangle (tri1, tri1, tri2, tri1, tri2, tri2);\r\n<\/script><\/p>\n<p><script type=\"application\/processing\">\r\nint circleX = 0;\r\nint circleY = 200;\r\nint circleSizeX = 1;\r\nint circleSizeY = 1;\r\n\r\nvoid setup () {\r\n  size (200, 400); }\r\n\r\nvoid draw () {\r\n  background (255);\r\n  stroke (0);\r\n  fill (175);\r\n  ellipse (circleX, circleY, circleSizeX, circleSizeY);\r\n  circleX = circleX + 1;\r\n  circleSizeX = circleSizeX + 1;\r\n  circleSizeY = circleSizeY + 2;}\r\n<\/script><\/p>\n<p><script type=\"application\/processing\">\r\nvoid setup () {\r\n  size (500, 500);\r\n  background (255); }\r\n\r\nvoid draw () {\r\n stroke (0);\r\n fill (175); }\r\n \r\nvoid mousePressed () {\r\n  fill (random(255),random(255),random(255));\r\n  ellipse (pmouseX, pmouseY, random(50), random(50)); }\r\n  \r\nvoid mouseDragged () {\r\n  fill (random(255),random(255),random(255));\r\n  ellipse (pmouseX, pmouseY, random(50), random(50)); }\r\n<\/script><\/p>\n<p><script type=\"application\/processing\">\r\nvoid setup () {\r\n  size (200, 200); }\r\n  \r\nvoid draw () {\r\n  if (mouseX < width \/ 3) {\r\n    fill (random(255),random(255),random(255));\r\n    rect (random(200), random(200), random(200), random(200)); }\r\n    else if (mouseX < 2 * width \/3) {\r\n      fill (random(255),random(255),random(255));\r\n      ellipse (random(200), random(200), random(200), random(200)); }\r\n      else {\r\n        fill (random(255),random(255),random(255));\r\n        triangle (random(200), random(200), random(200), random(200), random(200), random(200)); } }\r\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is my second homework assignment, aka the four challenges. The first one came out rather&#8230; odd when you look at the code, but I really enjoyed the other three.<\/p>\n","protected":false},"author":15,"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\/284"}],"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\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/comments?post=284"}],"version-history":[{"count":1,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":290,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/posts\/284\/revisions\/290"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/media?parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/categories?post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/IMGD3x00_B12\/wp-json\/wp\/v2\/tags?post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}