{"id":71736,"date":"2022-09-12T08:35:41","date_gmt":"2022-09-12T12:35:41","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/?p=71736"},"modified":"2022-09-12T08:35:41","modified_gmt":"2022-09-12T12:35:41","slug":"project-02-variable-face-11","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/09\/12\/project-02-variable-face-11\/","title":{"rendered":"Project-02-Variable-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>Section E<\/p>\n\n\n\n<p>I tried to play with adding makeup to the face when it was clicked, in order to add more color on the face. I also tried to play with beauty standards, and had the lips and eyebrows get fuller, as this is what many celebrities look like nowadays.  <\/p>\n\n\n\n<p><a class=\"p5_sketch_link\" data-width=\"640\" data-height=\"480\" href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2022\/09\/sketch-248.js\"><\/a><iframe src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/plugins\/p5-embedder\/p5_iframe.html\" class=\"p5_exampleFrame\" width=\"640\" height=\"480\"><\/iframe><pre class=\"language-javascript\"><code class=\"p5_editor language-javascript\">var boxWidth = 6\nfunction setup() {\n    createCanvas(640, 480);\n    background(220);\n    text(\"p5.js vers 0.9.0 test.\", 10, 15);\n}\n\nfunction draw() {\nbackground(247,233,106,[255]);\n fill(75,36,36,[255]); \/\/hair\n if (mouseY &lt; width\/2) { \/\/hair grows\n     ellipse(width\/2,height\/2+50,230,400);\n } else {\n     ellipse(width\/2,height\/2+170,260,700);\n }\n\n   \n fill(212,179,135,[255]);\n    ellipse(width\/2,height\/2,180,250); \/\/face\nif (mouseIsPressed) \/\/lipstick\n    fill(219,58,107,[100]); \nif (mouseIsPressed) {\n       ellipse((width\/2),(height\/2+50),70,30); \/\/lips\n} else {\n        ellipse((width\/2),(height\/2+50),40,15);\n}\nif (mouseIsPressed) \/\/blush\nfill(255,204,204,[255]);\n    circle((width\/2+40),(height\/2),30);\n    circle((width\/2-40),(height\/2),30);\nfill(0)\nstrokeWeight(3);\n    line((width\/2-40),(height\/2+50),(width\/2+40),(height\/2+50)); \/\/mouth\nfill(255); \/\/eye whites\n    ellipse((width\/2-30),(height\/2-40),30,15);\n    ellipse((width\/2+30),(height\/2-40),30,15);\nfill(75,32,32,[255]);\n    if (mouseX &gt; width\/2) { \/\/pupils dilate\n        boxWidth=12;\n    } else {\n        boxWidth=6;\n    }\n    ellipse((width\/2-30),(height\/2-40),boxWidth,boxWidth); \/\/eye right\n    ellipse((width\/2+30),(height\/2-40),boxWidth, boxWidth); \/\/eye left\n    arc((width\/2-30),(height\/2-60),30,mouseY,PI,radians(360)); \/\/eyebrow right arches\n    arc((width\/2+30),(height\/2-60),30,mouseY,PI,radians(360)); \/\/eyebrow left arches\nfill(164,135,106,[255]); \/\/nose\nstrokeWeight(1);\n    triangle((width\/2-15),(height\/2+10),(width\/2+15),(height\/2+10),(width\/2),(height\/2-30));\nfill(223,193,163,[255]);\nstrokeWeight(1);\n    rect((width\/2-9),(height\/2-30),18,35);\nfill(0); \n    ellipse((width\/2-5),(height\/2+5),8,5); \/\/nostrails\n    ellipse((width\/2+5),(height\/2+5),8,5); \/\/nostrails\n\n}\n<\/code><\/pre><\/p><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>Section E I tried to play with adding makeup to the face when it was clicked, in order to add more color on the face. I also tried to play with beauty standards, and had the lips and eyebrows get fuller, as this is what many celebrities look like nowadays.<\/p>\n","protected":false},"author":724,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/71736"}],"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\/724"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/comments?post=71736"}],"version-history":[{"count":2,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/71736\/revisions"}],"predecessor-version":[{"id":73102,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/71736\/revisions\/73102"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/media?parent=71736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/categories?post=71736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/tags?post=71736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}