{"id":70424,"date":"2022-09-07T10:09:43","date_gmt":"2022-09-07T14:09:43","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/?p=70424"},"modified":"2022-09-07T10:09:43","modified_gmt":"2022-09-07T14:09:43","slug":"project-1","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/09\/07\/project-1\/","title":{"rendered":"Project 1"},"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 self portrait, enjoy!! <\/p><div><a class=\"p5_sketch_link\" href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2022\/09\/sketch-88.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\">function setup() {\n    createCanvas(500, 515);\n    background(220);\n    text(\"p5.js vers 0.9.0 test.\", 10, 15);\n}\n\nfunction draw() {\n    background(random(0, 140), random(0,0), random(10, 140));\n   \n    strokeWeight(2)\n    fill(206,116,144);\n    triangle(246,313.5,0,515,500,515) \/\/shirt\n\n    strokeWeight(2);\n    fill(255,242,172);\n    triangle(347,428,299.4,379.6,271.5,442) \/\/collar bone 1\n\n    strokeWeight(2);\n    fill(255,242,172);\n    triangle(191.6,385,143.43,428.2,220.5,444) \/\/collar bone 1\n\n\n    strokeWeight(2);\n    fill(255,242,172);\n    triangle(143.43,428.2,347,428,246,490) \/\/chest\n\n\n\n    strokeWeight(.5)\n    fill(206,116,144);\n    ellipse(243.5,160,220,120) \/\/ hat 1\n\n        fill(196,131,215)\n    rect(129,158,230,100); \/\/ hair\n\n    strokeWeight(4); \n    fill(255,242,172); \n    triangle(355,250,129,245,246,490); \/\/jaw\n    strokeWeight(4);\n\n    \/\/ RELOAD THE PAGE FOR DIFFERENT COLORS!!!!\n    fill(223,186,117);   \n    triangle(281,293,197,292,241,231); \/\/nose\n   \n    fill(223,186,117);\n    triangle(225,243,175,174,129,242); \/\/ eye\n   \n    fill(223,186,117); \n    triangle(255,244.47,306,171,354,246); \/\/ eye\n\n    fill(255,242,172);\n    triangle(304,172,180,175,241,267.5); \/\/bridge of nose\n\n    fill(random(200,255),random(0,0),random(200,255));\n    ellipse(307.81,218.91,60,25); \/\/eye hole\n\n    fill(random(200,255),random(0,0),random(200,255));\n    ellipse(180,218.91,60,25); \/\/eye hole\n    \n    fill(223,186,117); \n    triangle(255,210,306,171,354,210); \/\/ eyelid\n    \n\n     fill(223,186,117); \n    triangle(135,210,186,171,234,210); \/\/ eyelid\n\n\n    strokeWeight(7)\n    stroke(150)\n    noFill();\n    ellipse(307.81,218.91,90,50); \/\/glass 1\n    noLoop()\n\n        strokeWeight(7)\n    stroke(150)\n    noFill();\n    ellipse(180,218.91,90,50); \/\/glass 2\n    noLoop()\n\n    line(225,218.91,262.81,218.91) \/\/glass bridge\n    \n    \n    strokeWeight(0)\n    fill(random(50,150),0,random(50,150)); \n    triangle(199,313,273,314,234,373); \/\/ mouth\n\n    stroke(1)\n    strokeWeight(6);\n    fill(206,116,144);\n    triangle(234.5,198.5,350.5,160,137.9,160) \/\/hat brim\n\n\n\n   \n\n}\n<\/code><\/pre><\/div><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>This is my self portrait, enjoy!! sketch function setup() { createCanvas(500, 515); background(220); text(&#8220;p5.js vers 0.9.0 test.&#8221;, 10, 15); } function draw() { background(random(0, 140), random(0,0), random(10, 140)); strokeWeight(2) fill(206,116,144); triangle(246,313.5,0,515,500,515) \/\/shirt strokeWeight(2); fill(255,242,172); triangle(347,428,299.4,379.6,271.5,442) \/\/collar bone 1 strokeWeight(2); fill(255,242,172); triangle(191.6,385,143.43,428.2,220.5,444) \/\/collar bone 1 strokeWeight(2); fill(255,242,172); triangle(143.43,428.2,347,428,246,490) \/\/chest strokeWeight(.5) fill(206,116,144); ellipse(243.5,160,220,120) \/\/ hat 1 fill(196,131,215) &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/09\/07\/project-1\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Project 1&#8221;<\/span><\/a><\/p>\n","protected":false},"author":748,"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\/70424"}],"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\/748"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/comments?post=70424"}],"version-history":[{"count":2,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/70424\/revisions"}],"predecessor-version":[{"id":70428,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/70424\/revisions\/70428"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/media?parent=70424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/categories?post=70424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/tags?post=70424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}