{"id":70354,"date":"2022-09-07T00:14:09","date_gmt":"2022-09-07T04:14:09","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/?p=70354"},"modified":"2022-09-07T00:14:09","modified_gmt":"2022-09-07T04:14:09","slug":"project-01-face","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/09\/07\/project-01-face\/","title":{"rendered":"Project 01-Face"},"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>this is my project<\/p>\n<div><a class=\"p5_sketch_link\" href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2022\/09\/sketch-81.js\" data-width=\"500\" 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=\"500\" height=\"600\"><\/iframe><pre class=\"language-javascript\"><code class=\"p5_editor language-javascript\">\/\/Aarnav Patel\n\/\/Section D\n\nfunction setup() {\n    createCanvas(500, 500);\n    background(220);\n}\nvar pos = (500 \/ 7 \/ 2);\n\nfunction draw() {\n\tvar randomR = random(1, 256);\n\tvar randomG = random(1, 256);\n\tvar randomB = random(1, 256);\n\tif (mouseIsPressed) {\n\t    background(randomR, randomG, randomB);\n\t}\n\t\/\/body\n\tfill(255);\n\tellipse(width \/ 2, height, width \/ 1.5, height);\n\t\/\/face\n\tnoStroke();\n\tfill(221, 161, 119);\n\tellipse((width \/ 2), (height \/ 2), (width \/ 3),  (width \/ 2));\n\n\n\t\/\/hair\n\tfill(0);\n\tellipse((width \/ 2), ((height \/ 2) - (width \/ 3 \/ 2)), (width \/ 3), (width \/ 4));\n\trect((width \/ 2) - ((width \/ 3 \/ 2)) - 10, ((height \/ 2) - 50), 20, 50);\n\trect((width \/ 2) + ((width \/ 3 \/ 2)) - 10, ((height \/ 2) - 50), 20, 50)\n\ttriangle((width \/ 2) - ((width \/ 3 \/ 2)) - 10, ((height \/ 2) - 50), (width \/ 2) - ((width \/ 3) \/ 2), ((height \/ 2) - (width \/ 3 \/ 2)), (width \/ 2) + ((width \/ 3 \/ 2)) + 10, ((height \/ 2) - 50));\n\ttriangle((width \/ 2) - ((width \/ 3 \/ 2)) - 10, ((height \/ 2) - 50), (width \/ 2) + ((width \/ 3) \/ 2), ((height \/ 2) - (width \/ 3 \/ 2)), (width \/ 2) + ((width \/ 3 \/ 2)) + 10, ((height \/ 2) - 50));\n\n\t\/\/eyes\n\tellipse((width \/ 2) - ((width \/ 3) \/ 4), (height \/ 2), 10);\n\tellipse((width \/ 2) + ((width \/ 3) \/ 4), (height \/ 2), 10);\n\n\t\/\/nose\n\tfill(170, 130, 100);\n\tellipse((width \/ 2), (height \/ 2) + 50, 50);\n\tfill(221, 161, 119);\n\tellipse((width \/ 2), (height \/ 2) + 40, 50);\n\n\t\/\/smile\n\tfill(0);\n\trect((width \/ 2) - ((width \/ 10) \/ 2), (height \/ 2) + 100, (width \/ 10), 3);\n\n\n \n}\n<\/code><\/pre><\/div><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>this is my project sketch \/\/Aarnav Patel \/\/Section D function setup() { createCanvas(500, 500); background(220); } var pos = (500 \/ 7 \/ 2); function draw() { var randomR = random(1, 256); var randomG = random(1, 256); var randomB = random(1, 256); if (mouseIsPressed) { background(randomR, randomG, randomB); } \/\/body fill(255); ellipse(width \/ 2, height, &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/09\/07\/project-01-face\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Project 01-Face&#8221;<\/span><\/a><\/p>\n","protected":false},"author":750,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,58],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/70354"}],"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\/750"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/comments?post=70354"}],"version-history":[{"count":3,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/70354\/revisions"}],"predecessor-version":[{"id":70357,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/70354\/revisions\/70357"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/media?parent=70354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/categories?post=70354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/tags?post=70354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}