{"id":71706,"date":"2022-09-11T23:34:04","date_gmt":"2022-09-12T03:34:04","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/?p=71706"},"modified":"2022-09-11T23:34:04","modified_gmt":"2022-09-12T03:34:04","slug":"bhaboos-project-2","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/09\/11\/bhaboos-project-2\/","title":{"rendered":"Bhaboo&#8217;s Project 2"},"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=\"480\" data-height=\"640\" id=\"wp-block-file--media-5cb4622c-236a-4f67-bef7-995aa7ed5e04\" href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2022\/09\/sketch-244.js\">sketch<\/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=\"640\"><\/iframe><pre class=\"language-javascript\"><code class=\"p5_editor language-javascript\">function setup() {\n    createCanvas(480, 640);\n    background(255);\n    text(\"p5.js vers 0.9.0 test.\", 10, 15);\n}\n\n\/\/humans in current form \n\nfunction draw() {\n    background(99, 197, 218);\n    strokeWeight(3)\n    fill(78, 53, 36, [255])\n    ellipse(360, 240, 60, 80) \/\/ear right\n    fill(78, 53, 36, [255])\n    ellipse(100, 240, 60, 80) \/\/ear left\n    fill(121, 92, 52, [255])\n    ellipse(230, 270, 280, 320) \/\/head\n    fill(255, 255, 255, [255])\n    ellipse(180, 220, 80, 64) \/\/eye left\n    fill(255, 255, 255, [255])\n    ellipse(280, 220, 80, 64) \/\/eye right\n    fill(78, 53, 36, [255])\n    ellipse(180, 200, 20, 20) \/\/pupil left\n    fill(78, 53, 36, [255])\n    ellipse(280, 200, 20, 20) \/\/pupil right\n    fill(131, 92, 52, [255])\n    triangle(230, 250, 200, 320, 260, 320) \/\/nose\n    fill(184, 63, 63, [255])\n    arc(220, 260, 400, 200, 1, 2, 2) \/\/mouth\n    fill(0, 0, 0, [255])\n    triangle(230, 60, 127, 160, 333, 160) \/\/mohawk\n    fill(255, 255, 255, [255])\n    ellipse(378, 259, 7, 7) \/\/pupil right\n\n\/\/monkey (humans pre-evolutionary form)\nif (mouseIsPressed) {\n    earValue1 = random(40,90)\n    earValue2 = random(50,100)\n    eyeValue1 = random(20,100)\n    eyeValue2 = random(40,80)\n    pupilValue1= random(10,20)\n    pupulValue2 = random(5,30)\n    toungeValue = random(40,120)\n    background(150, 255, 150);\n    strokeWeight(0)\n    fill(78, 53, 36, [255])\n    ellipse(360, 260, earValue1, 80) \/\/ear right\n    fill(78, 53, 36, [255])\n    ellipse(100, 200, 60, earValue2) \/\/ear left\n    fill(121, 92, 52, [255])\n    ellipse(230, 270, 280, 320) \/\/head\n    fill(255, 255, 255, [255])\n    ellipse(180, 200, 100, eyeValue1) \/\/eye left\n    fill(255, 255, 255, [255])\n    ellipse(280, 200, eyeValue2, 38) \/\/eye right\n    fill(78, 53, 36, [255])\n    ellipse(180, 200, pupilValue1, pupulValue2) \/\/pupil left\n    fill(78, 53, 36, [255])\n    ellipse(280, 200, pupulValue2, pupilValue1) \/\/pupil right\n    fill(131, 92, 52, [255])\n    triangle(240, 230, 200, 300, 260, 310) \/\/nose\n    fill(184, 63, 63, [255])\n    ellipse(194, 402, 64, 100) \/\/ tounge\n    fill(184, 63, 63, [255])\n    arc(230, 320, 200, 100, 1, 3, 4) \/\/mouth\n    \n}\n}<\/code><\/pre><\/div>\n\n\n\n<p><\/p><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>sketch function setup() { createCanvas(480, 640); background(255); text(&#8220;p5.js vers 0.9.0 test.&#8221;, 10, 15); } \/\/humans in current form function draw() { background(99, 197, 218); strokeWeight(3) fill(78, 53, 36, [255]) ellipse(360, 240, 60, 80) \/\/ear right fill(78, 53, 36, [255]) ellipse(100, 240, 60, 80) \/\/ear left fill(121, 92, 52, [255]) ellipse(230, 270, 280, 320) \/\/head fill(255, &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/09\/11\/bhaboos-project-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Bhaboo&#8217;s Project 2&#8221;<\/span><\/a><\/p>\n","protected":false},"author":751,"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\/71706"}],"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\/751"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/comments?post=71706"}],"version-history":[{"count":3,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/71706\/revisions"}],"predecessor-version":[{"id":71715,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/71706\/revisions\/71715"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/media?parent=71706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/categories?post=71706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/tags?post=71706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}