{"id":70598,"date":"2022-09-07T22:56:49","date_gmt":"2022-09-08T02:56:49","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/?p=70598"},"modified":"2022-09-07T22:58:24","modified_gmt":"2022-09-08T02:58:24","slug":"project-1-my-self-portrait-18","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/09\/07\/project-1-my-self-portrait-18\/","title":{"rendered":"Project 1: My 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><p>My most challenging part of the post is my nose and the background, because I tried to draw curves.<\/p>\n\n\n\n<div class=\"wp-block-file\"><a class=\"p5_sketch_link\" data-width=\"480\" data-height=\"650\" id=\"wp-block-file--media-82143776-02dc-4a14-9a5b-2d6551114e9c\" href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2022\/09\/jiayihead.js\">jiayihead<\/a><a href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2022\/09\/jiayihead.js\" class=\"wp-block-file__button\" download aria-describedby=\"wp-block-file--media-82143776-02dc-4a14-9a5b-2d6551114e9c\">Download<\/a><iframe src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/plugins\/p5-embedder\/p5_iframe.html\" class=\"p5_exampleFrame\" width=\"480\" height=\"650\"><\/iframe><pre class=\"language-javascript\"><code class=\"p5_editor language-javascript\">function setup() {\n    createCanvas(480, 650);\n    background(250,248,242);\n}\n\nfunction draw() {\n    stroke(0) \/\/Background\n    strokeWeight(2);\n    fill(255);\n    rect(0,410,31,109);\n    stroke(0); \n    strokeWeight(2);\n    fill(255);\n    rect(0,420,20,93);\n    line(62,26,480,18);\n    line(61,26,40,404);\n    line(0,0,61,26);\n    line(0,233,48.5,233.5);\n    line(0,245,48,246);\n    fill(65,65,65);\n    arc(240, 500, 480,68, 0, 0);\n    stroke(0); \/\/Background\n    strokeWeight(0);      \/\/shirts\n    fill(65,65,65);\n    rect(0,500,490,200);\n    fill(250);\n    quad(240, 630, 275, 630, 275, 650, 240, 650);\n    fill(250);\n    quad(240-50, 630+10, 275-50, 630, 275-50, 650, 240-50, 650);\n    fill(250);\n    quad(240+50, 630, 275+50, 630+10, 275+50, 650, 240+50, 650);\n    strokeWeight(10)\n    fill(65,65,65)\n    ellipse(190-10, 500-40, 320, 200);\n    strokeWeight(10)\n    fill(65,65,65)\n    ellipse(190, 500, 320, 200);\n    strokeWeight(5)\n    fill(65,65,65)\n    ellipse(190, 500, 256, 160);\n    strokeWeight(2)\n    x=-40\n    y=75\n    triangle(190+x, 500+y,210+x,519+y, 185+x, 520+y);\n    triangle(190+x, 505+y,205+x,514+y, 190+x, 515+y);\n    x=+50 \n    y=70\n    triangle(190+x, 500+y,210+x,519+y, 185+x, 520+y);\n    triangle(190+x, 505+y,205+x,514+y, 190+x, 515+y); \/\/Shirt Ends\n    stroke(0); \n    strokeWeight(5);      \n    fill(255,204,153);\n    rect(150,480,110,60);\/\/head\n    fill(255,204,153)\n    ellipse(80,230,30,50)\n    ellipse(370,230,30,50)\n    fill(255,204,153);\n    ellipse(225,280,300,480)\n    fill(0)\n    triangle(100, 140, 100, 50,180, 50);\n    triangle(350, 140,350,50,270,50);\n    rect(150,35,150,50)\n    triangle(125, 185, 200, 190,150, 180);\n    triangle(300, 185, 225, 190,275, 180)\n    fill(250,245,255)\n    ellipse(155,225 , 75, 25);\n    ellipse(270, 225, 75, 25);\n    fill(0)\n    circle(155,225 , 25);\n    circle(270, 225, 25);\n    line(190,220,140,210)\n    line(280,210,230,220)\n    line(230,300,245,350)\n    line(200,300,190,350)\n    fill(255,204,153)\n    bezier(190,350, 180,380 , 205, 350, 205, 350);\n    x=20\n    bezier(190+x,350, 200+x,380 , 205+x, 350, 205+x, 350);\n    x=40\n    bezier(190+x,350, 200+x,380 , 205+x, 350, 205+x, 350);\n    fill(0)\n    circle(205, 357, 13);\n    circle(227, 357, 13);\n    fill(233,34,74)\n    ellipse(225, 450, 75, 25);\n    y=-15\n    x=-5\n    bezier(225+x,460+y,240+x,435+y+10 ,240+x, 435+y+10,265+x, 460+y);\n    y=-15\n    x=-35\n    bezier(225+x,460+y,240+x,435+y+10 ,240+x, 435+y+10,265+x, 460+y);\n    line(225-35,450,265-5,450)\n    fill(0)\n    circle(130,170,3)\n    \/\/head\n    noLoop()           \n}\n<\/code><\/pre><\/div><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>My most challenging part of the post is my nose and the background, because I tried to draw curves. jiayiheadDownload function setup() { createCanvas(480, 650); background(250,248,242); } function draw() { stroke(0) \/\/Background strokeWeight(2); fill(255); rect(0,410,31,109); stroke(0); strokeWeight(2); fill(255); rect(0,420,20,93); line(62,26,480,18); line(61,26,40,404); line(0,0,61,26); line(0,233,48.5,233.5); line(0,245,48,246); fill(65,65,65); arc(240, 500, 480,68, 0, 0); stroke(0); \/\/Background strokeWeight(0); \/\/shirts fill(65,65,65); &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/09\/07\/project-1-my-self-portrait-18\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Project 1: My Self Portrait&#8221;<\/span><\/a><\/p>\n","protected":false},"author":710,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,55],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/70598"}],"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\/710"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/comments?post=70598"}],"version-history":[{"count":2,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/70598\/revisions"}],"predecessor-version":[{"id":70602,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/70598\/revisions\/70602"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/media?parent=70598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/categories?post=70598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/tags?post=70598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}