{"id":27,"date":"2014-09-10T12:27:58","date_gmt":"2014-09-10T12:27:58","guid":{"rendered":"http:\/\/itp.fromjia.com\/?p=27"},"modified":"2014-09-10T12:30:41","modified_gmt":"2014-09-10T12:30:41","slug":"minesweeper","status":"publish","type":"post","link":"http:\/\/itp.fromjia.com\/?p=27","title":{"rendered":"MineSweeper"},"content":{"rendered":"<p><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/Screen-Shot-2014-09-10-at-8.07.09-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-28\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/Screen-Shot-2014-09-10-at-8.07.09-AM-1024x878.png\" alt=\"Screen Shot 2014-09-10 at 8.07.09 AM\" width=\"730\" height=\"625\" srcset=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/Screen-Shot-2014-09-10-at-8.07.09-AM-1024x878.png 1024w, http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/Screen-Shot-2014-09-10-at-8.07.09-AM-300x257.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/a>This is my first assignment for ICM.<\/p>\n<p>I first started playing around with shapes in for loops. These\u00a0are a few of the patterns that I created.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/exercises2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-34\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/exercises2-1024x876.jpg\" alt=\"exercises\" width=\"730\" height=\"624\" srcset=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/exercises2-1024x876.jpg 1024w, http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/exercises2-300x256.jpg 300w, http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/exercises2-1200x1027.jpg 1200w, http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/exercises2.jpg 1402w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/a><\/p>\n<p>The red triangles reminded me of the flags in the game Minesweeper, so I turned them into flags, like this.<\/p>\n<p><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\" alt=\"flag\" width=\"36\" height=\"50\" \/><\/a><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\" alt=\"flag\" width=\"36\" height=\"50\" \/><\/a><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\" alt=\"flag\" width=\"36\" height=\"50\" \/><\/a><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\" alt=\"flag\" width=\"36\" height=\"50\" \/><\/a><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\" alt=\"flag\" width=\"36\" height=\"50\" \/><\/a><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\" alt=\"flag\" width=\"36\" height=\"50\" \/><\/a><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\" alt=\"flag\" width=\"36\" height=\"50\" \/><\/a><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\" alt=\"flag\" width=\"36\" height=\"50\" \/><\/a><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\" alt=\"flag\" width=\"36\" height=\"50\" \/><\/a><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\" alt=\"flag\" width=\"36\" height=\"50\" \/><\/a><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\" alt=\"flag\" width=\"36\" height=\"50\" \/><\/a><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\" alt=\"flag\" width=\"36\" height=\"50\" \/><\/a><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/09\/flag.jpg\" alt=\"flag\" width=\"36\" height=\"50\" \/><\/a><\/p>\n<p>Then added abstracted explosions with yellow triangles and lines.<\/p>\n<p>***** code *****<\/p>\n<p>void setup() {<br \/>\nsize (700, 600);<br \/>\nbackground(255);<br \/>\n}<\/p>\n<p>void draw() {<br \/>\nfill(255, 0, 0, 150);<br \/>\n\/\/noStroke();<br \/>\nsmooth();<\/p>\n<p>for (int y = 30; y &lt; height-30; y += 15) {<br \/>\nfor (int x = 35; x &lt; width-35; x += 13) {<\/p>\n<p>\/*fill(0-y);<br \/>\nnoStroke();<br \/>\ntriangle(x+11, y, x+6.5, y+8, x+15.5, y+8);<br \/>\n\/\/fill(255, y-150, x-y, 150);*\/<\/p>\n<p>\/\/ flags<br \/>\nfill(255, 0, 0);<br \/>\nnoStroke();<br \/>\ntriangle(x-1, y, x+8, y-4, x+8, y+4);<\/p>\n<p>stroke(0);<br \/>\nstrokeWeight(1);<br \/>\nline(x+7, y+4, x+7, y+6);<br \/>\nline(x+2, y+7, x+7, y+7);<br \/>\nstrokeWeight(2);<br \/>\nline(x+1, y+9, x+9, y+9);<\/p>\n<p>stroke(y+50, y+50, y+50);<br \/>\nline(x-1, y, 300, 240);<br \/>\n}<br \/>\n}<\/p>\n<p>\/\/stroke(80);<br \/>\nrect(278, 238, 44, 44);<br \/>\nfill(150);<\/p>\n<p>\/\/bomb<br \/>\nfill(0);<br \/>\nnoStroke();<br \/>\nellipse(300, 260, 20, 20);<\/p>\n<p>fill(255);<br \/>\nnoStroke();<br \/>\nellipse(296, 256, 5, 5);<\/p>\n<p>\/\/top<br \/>\nstroke(0);<br \/>\nstrokeWeight(2);<br \/>\nline(300, 249, 300, 245);<\/p>\n<p>\/\/bottom<br \/>\nline(300, 271, 300, 275);<\/p>\n<p>\/\/left<br \/>\nline(289, 260, 285, 260);<\/p>\n<p>\/\/right<br \/>\nline(311, 260, 315, 260);<\/p>\n<p>strokeWeight(2);<br \/>\n\/\/top left<br \/>\nline(289, 248, 293, 252);<\/p>\n<p>\/\/top right<br \/>\nline(311, 248, 308, 251);<\/p>\n<p>\/\/bottom left<br \/>\nline(288, 272, 291, 269);<\/p>\n<p>\/\/bottom right<br \/>\nline(311, 272, 308, 269);<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is my first assignment for ICM. I first started playing around with shapes in for loops. These\u00a0are a few of the patterns that I created. &nbsp; The red triangles reminded me of the flags in the game Minesweeper, so I turned them into flags, like this. Then added abstracted explosions with yellow triangles and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-intro-to-computational-media"],"_links":{"self":[{"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27"}],"version-history":[{"count":4,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":208,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions\/208"}],"wp:attachment":[{"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}