{"id":73351,"date":"2022-10-01T12:41:06","date_gmt":"2022-10-01T16:41:06","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/?p=73351"},"modified":"2022-10-01T12:41:49","modified_gmt":"2022-10-01T16:41:49","slug":"project-05","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/10\/01\/project-05\/","title":{"rendered":"Project 05"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body><p>Wallpaper Art &ndash; Floral pattern<\/p>\n<div><a class=\"p5_sketch_link\" href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2022\/10\/sketch-6.js\" data-width=\"400\" data-height=\"600\">sketch<\/a><iframe src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/plugins\/p5-embedder\/p5_iframe.html\" class=\"p5_exampleFrame\" width=\"400\" height=\"600\"><\/iframe><pre class=\"language-javascript\"><code class=\"p5_editor language-javascript\">\/\/ Theresa Ye\n\/\/ Section E\n\/\/ thye@andrew.cmu.edu\n\/\/ Project-05\n\nfunction setup() {\n    createCanvas(400, 600);\n    background(215,200,204);\n}\n\nfunction draw() {\n     for (var x = 0; x &lt; 450; x += 25) {\n        for (var y = 0; y &lt; 650; y += 30) {\n            drawLeavesSmall(x,y);\n        }\n    }\n    for (x = 25; x &lt; 390; x += 50) {\n        for (y = 25; y &lt; 600; y += 60) {\n            stroke(215,200,204)\n            fill(176,142,149);\n            ellipse(x,y,45)\n        }\n    }\n\n    for (x = 25; x &lt; 390; x += 50) {\n        for (y = 25; y &lt; 600; y += 60) {\n            drawLeaves(x,y);\n            drawFlower(x,y);\n        }\n    }\n}\n\nfunction drawFlower (x,y) {\n    push();\n    translate(x,y);\n    scale(0.5)\n    fill(188,164,170);\n    stroke(215,200,204);\n    strokeWeight(0.5);\n    beginShape();\n    curveVertex(0,0);\n    curveVertex(0,0);\n    curveVertex(-10,-16);\n    curveVertex(-15,-20);\n    curveVertex(0,-30);\n    curveVertex(25,-24);\n    curveVertex(30,-20);\n    curveVertex(28,-10);\n    curveVertex(0,0);\n    curveVertex(0,0);\n    endShape();\n    fill(161,127,136);\n    ellipse(4,-10,18,15);\n    fill(188,164,170);\n    rotate(radians(120));\n    beginShape();\n    curveVertex(0,0);\n    curveVertex(0,0);\n    curveVertex(-10,-16);\n    curveVertex(-15,-20);\n    curveVertex(0,-30);\n    curveVertex(25,-24);\n    curveVertex(30,-20);\n    curveVertex(28,-10);\n    curveVertex(0,0);\n    curveVertex(0,0);\n    endShape();\n    fill(161,127,136);\n    ellipse(4,-10,18,15);\n    fill(188,164,170);\n    rotate(radians(120));\n    beginShape();\n    curveVertex(0,0);\n    curveVertex(0,0);\n    curveVertex(-10,-16);\n    curveVertex(-15,-20);\n    curveVertex(0,-30);\n    curveVertex(25,-24);\n    curveVertex(30,-20);\n    curveVertex(28,-10);\n    curveVertex(0,0);\n    curveVertex(0,0);\n    endShape();\n    fill(161,127,136);\n    ellipse(4,-10,18,15);\n    fill(255);\n    stroke(255);\n    ellipse(0,0,10);\n    pop();\n}\n\nfunction drawLeaves(x,y) {\n    push();\n    translate(x,y);\n    scale(0.5);\n    stroke(215,200,204)\n    fill(176,142,149);\n    ellipse(0,0,45)\n    fill(141,99,110);\n    beginShape();\n    curveVertex(0,0);\n    curveVertex(0,0);\n    curveVertex(-2,-35);\n    curveVertex(-16,-50);\n    curveVertex(-30, -55);\n    curveVertex(-50,-60);\n    curveVertex(-50,-60);\n    curveVertex(-40,-28);\n    curveVertex(-20,-8);\n    curveVertex(0,0);\n    curveVertex(0,0);\n    endShape();\n    rotate(radians(90));\n    beginShape();\n    curveVertex(0,0);\n    curveVertex(0,0);\n    curveVertex(-2,-35);\n    curveVertex(-16,-50);\n    curveVertex(-30, -55);\n    curveVertex(-50,-60);\n    curveVertex(-50,-60);\n    curveVertex(-40,-28);\n    curveVertex(-20,-8);\n    curveVertex(0,0);\n    curveVertex(0,0);\n    endShape();\n    rotate(radians(145));\n    beginShape();\n    curveVertex(0,0);\n    curveVertex(0,0);\n    curveVertex(-2,-35);\n    curveVertex(-16,-50);\n    curveVertex(-30, -55);\n    curveVertex(-50,-60);\n    curveVertex(-50,-60);\n    curveVertex(-40,-28);\n    curveVertex(-20,-8);\n    curveVertex(0,0);\n    curveVertex(0,0);\n    endShape();\n    pop();\n}\n\nfunction drawLeavesSmall(x,y) {\n    push();\n    translate(x,y);\n    scale(0.25);\n    stroke(215,200,204)\n    fill(239,233,235);\n    beginShape();\n    curveVertex(0,0);\n    curveVertex(0,0);\n    curveVertex(-2,-35);\n    curveVertex(-16,-50);\n    curveVertex(-30, -55);\n    curveVertex(-50,-60);\n    curveVertex(-50,-60);\n    curveVertex(-40,-28);\n    curveVertex(-20,-8);\n    curveVertex(0,0);\n    curveVertex(0,0);\n    endShape();\n    rotate(radians(90));\n    beginShape();\n    curveVertex(0,0);\n    curveVertex(0,0);\n    curveVertex(-2,-35);\n    curveVertex(-16,-50);\n    curveVertex(-30, -55);\n    curveVertex(-50,-60);\n    curveVertex(-50,-60);\n    curveVertex(-40,-28);\n    curveVertex(-20,-8);\n    curveVertex(0,0);\n    curveVertex(0,0);\n    endShape();\n    rotate(radians(145));\n    beginShape();\n    curveVertex(0,0);\n    curveVertex(0,0);\n    curveVertex(-2,-35);\n    curveVertex(-16,-50);\n    curveVertex(-30, -55);\n    curveVertex(-50,-60);\n    curveVertex(-50,-60);\n    curveVertex(-40,-28);\n    curveVertex(-20,-8);\n    curveVertex(0,0);\n    curveVertex(0,0);\n    endShape();\n    pop();\n}\n\n<\/code><\/pre><\/div><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>Wallpaper Art &ndash; Floral pattern sketch \/\/ Theresa Ye \/\/ Section E \/\/ thye@andrew.cmu.edu \/\/ Project-05 function setup() { createCanvas(400, 600); background(215,200,204); } function draw() { for (var x = 0; x &lt; 450; x += 25) { for (var y = 0; y &lt; 650; y += 30) { drawLeavesSmall(x,y); } } for (x &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/10\/01\/project-05\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Project 05&#8221;<\/span><\/a><\/p>\n","protected":false},"author":775,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[104,121],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/73351"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/users\/775"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/comments?post=73351"}],"version-history":[{"count":8,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/73351\/revisions"}],"predecessor-version":[{"id":73369,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/73351\/revisions\/73369"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/media?parent=73351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/categories?post=73351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/tags?post=73351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}