{"id":64853,"date":"2021-09-07T11:17:22","date_gmt":"2021-09-07T15:17:22","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/?p=64853"},"modified":"2021-09-07T11:28:53","modified_gmt":"2021-09-07T15:28:53","slug":"project-1-self-portrait","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/2021\/09\/07\/project-1-self-portrait\/","title":{"rendered":"Project 1: Self Portrait"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body><div class=\"wp-block-file\"><a class=\"p5_sketch_link\" data-width=\"400\" data-height=\"600\" href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/09\/wpf-portrait.js\">wpf-portrait<\/a><iframe src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/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\">function setup() {\n    createCanvas(400, 600);\n    background(0,186,247);\n}\n\nfunction draw() {\n\n    fill(70,44,26);\n    arc(200, 150, 200, 200, PI, TWO_PI,);\n\n    fill(70,44,26);\n    arc(200, 125, 200, 200, PI, TWO_PI,);\n\n    fill(233,168,139);\n    ellipse(200,150,175,175);\n\n    stroke(70,44,26);\n    fill(70,44,26);\n    rect(125,60,150,30);\n\n    fill(70,44,26);\n    rect(225,120,22.5,5);\n\n    fill(70,44,26);\n    rect(152,120,22.5,5);\n\n    fill(255,255,255);\n    ellipse(165,140,17.5,17.5);\n\n    fill(255,255,255);\n    ellipse(235,140,17.5,17.5);\n\n    fill(35,163,102);\n    ellipse(235,140,10,10);\n\n    fill(35,163,102);\n    ellipse(165,140,10,10);\n\n    fill(0);\n    ellipse(165,140,5,5);\n\n    fill(0);\n    ellipse(235,140,5,5);\n\n    fill(239,139,129);\n    arc(200, 200, 40, 40, TWO_PI, PI);\n\n    fill(0);\n    arc(200, 202.5, 30, 30, TWO_PI, PI);\n\n    fill(241,215,212);\n    arc(200, 202.5, 10, 10, TWO_PI, PI);\n\n    fill(241,215,212);\n    arc(210, 202.5, 10, 10, TWO_PI, PI);\n\n    fill(241,215,212);\n    arc(190, 202.5, 10, 10, TWO_PI, PI);\n\n    fill(255,175,145);\n    arc(200, 175, 15, 30, PI, TWO_PI,);\n\n    fill(0);\n    arc(197.5, 175, 4, 4, PI, TWO_PI,);\n\n    fill(0);\n    arc(202.5, 175, 4, 4, PI, TWO_PI,);\n\n    fill(46,56,66)\n    arc(200, 637.5, 200, 800, PI, TWO_PI,);\n\n\n    \n\n\n    \n    \n\n}\n<\/code><\/pre><\/div>\n\n\n\n<p>I found this self-portrait very challenging, particularly creating hair that looked even remotely human, but I had a lot of fun trying to draw myself.<\/p><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>wpf-portrait function setup() { createCanvas(400, 600); background(0,186,247); } function draw() { fill(70,44,26); arc(200, 150, 200, 200, PI, TWO_PI,); fill(70,44,26); arc(200, 125, 200, 200, PI, TWO_PI,); fill(233,168,139); ellipse(200,150,175,175); stroke(70,44,26); fill(70,44,26); rect(125,60,150,30); fill(70,44,26); rect(225,120,22.5,5); fill(70,44,26); rect(152,120,22.5,5); fill(255,255,255); ellipse(165,140,17.5,17.5); fill(255,255,255); ellipse(235,140,17.5,17.5); fill(35,163,102); ellipse(235,140,10,10); fill(35,163,102); ellipse(165,140,10,10); fill(0); ellipse(165,140,5,5); fill(0); ellipse(235,140,5,5); fill(239,139,129); arc(200, 200, 40, 40, TWO_PI, PI); fill(0); arc(200, &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/2021\/09\/07\/project-1-self-portrait\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Project 1: Self Portrait&#8221;<\/span><\/a><\/p>\n","protected":false},"author":648,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,56],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/64853"}],"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\/648"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/comments?post=64853"}],"version-history":[{"count":2,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/64853\/revisions"}],"predecessor-version":[{"id":64894,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/64853\/revisions\/64894"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/media?parent=64853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/categories?post=64853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/tags?post=64853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}