{"id":66864,"date":"2021-10-02T17:14:39","date_gmt":"2021-10-02T21:14:39","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/?p=66864"},"modified":"2021-10-02T17:14:53","modified_gmt":"2021-10-02T21:14:53","slug":"project-5-wallpaper-6","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/2021\/10\/02\/project-5-wallpaper-6\/","title":{"rendered":"Project 5 &#8211; Wallpaper"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"1014\" src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-02-at-5.11.42-PM-1024x1014.png\" alt=\"\" class=\"wp-image-66865\" srcset=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-02-at-5.11.42-PM-1024x1014.png 1024w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-02-at-5.11.42-PM-300x297.png 300w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-02-at-5.11.42-PM-150x150.png 150w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-02-at-5.11.42-PM-768x760.png 768w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-02-at-5.11.42-PM.png 1200w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\"><\/figure><p><\/p>\n\n\n\n<p>In this work I tried to incorporate the four colors of the Korean flag: red, blue, black and white, in addition to the rectangles present on the flag, and a brief geometric shape of the national flower (Mugunghwa). <\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>var col;\nvar row;\nvar col1;\nvar row1;\nfunction setup() {\n    createCanvas(600, 600);\n}\n\nfunction draw() {\n    background(0);\n    rectangles();\n    for(col = 60; col &lt;= 600; col += 200) {\n        for(row = 60; row &lt;=600; row += 200) {\n            flowers(col,row);\n            print(row);\n        }\n        print(col);\n    }\n    noLoop();\n    for(col1 = 150; col1 &lt;= 600; col1 += 200) {\n        for(row1 = 150; row1 &lt;= 600; row1 += 200) {\n            flowers(col1, row1);\n        }\n    }\n}\n\nfunction rectangles(){\n    for(var x = 0; x&lt;=600; x +=90){\n        for (var y=20; y&lt;=600; y +=50){\n        fill(255);\n        rect(x,y,55,15);    \n        }\n    \n    }\n}\n\n\nfunction flowers(x,y) {\n    push();\n    translate(x,y);\n    fill(255,0,0);\n    ellipse(25,0,30,30);\n    rotate(PI\/3);\n    fill(0,0,153);\n    ellipse(25,0,30,30);\n    rotate(PI\/3);\n    fill(255,0,0)\n    ellipse(25,0,30,30);\n    rotate(PI\/3);\n    fill(0,0,153);\n    ellipse(25,0,30,30);\n    rotate(PI\/3);\n    fill(255,0,0);\n    ellipse(25,0,30,30);\n    rotate(PI\/3);\n    fill(0,0,153);\n    ellipse(25,0,30,30);\n    fill(230,230,250);\n    ellipse(0,0,15,15);\n    pop();\n}<\/code><\/pre>\n\n\n\n<p><\/p><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>In this work I tried to incorporate the four colors of the Korean flag: red, blue, black and white, in addition to the rectangles present on the flag, and a brief geometric shape of the national flower (Mugunghwa).<\/p>\n","protected":false},"author":680,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[104,57,1],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/66864"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/users\/680"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/comments?post=66864"}],"version-history":[{"count":1,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/66864\/revisions"}],"predecessor-version":[{"id":66866,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/66864\/revisions\/66866"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/media?parent=66864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/categories?post=66864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/tags?post=66864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}