{"id":68692,"date":"2021-11-06T23:51:14","date_gmt":"2021-11-07T03:51:14","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/?p=68692"},"modified":"2021-11-06T23:51:14","modified_gmt":"2021-11-07T03:51:14","slug":"project-10-2","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/2021\/11\/06\/project-10-2\/","title":{"rendered":"Project 10"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"710\" src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/planning-1024x710.png\" alt=\"\" class=\"wp-image-68693\" srcset=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/planning-1024x710.png 1024w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/planning-300x208.png 300w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/planning-768x532.png 768w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/planning-1536x1064.png 1536w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/planning-1200x831.png 1200w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/planning.png 1651w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\"><figcaption>Beginning sketches<\/figcaption><\/figure><div class=\"wp-block-file\"><a class=\"p5_sketch_link\" href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/sketch-23.js\">sketch<\/a><iframe src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/plugins\/p5-embedder\/p5_iframe.html\" class=\"p5_exampleFrame\" width=\"\" height=\"\"><\/iframe><pre class=\"language-javascript\"><code class=\"p5_editor language-javascript\">\/* Nami Numoto\n * Section A\n * mnumoto@andrew.cmu.edu\n * Project 10\n *\/\n\n\/\/tried to depict Baymax from Big Hero 6\n\/\/interacting with a spider\n\/\/and going from being confused to happy :)\n\nvar baymax;\nvar spider;\nvar question;\n\nfunction preload() {\n    baymax = loadSound(\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/ding.wav\");\n    spider = loadSound(\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/fall.wav\");\n    question = loadSound(\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/questionmark.wav\");\n}\n\nfunction soundSetup() {\n    baymax.setVolume();\n    spider.setVolume();\n    question.setVolume();\n}\n\nfunction setup() {\n    createCanvas(400, 400);\n    background(225);\n    frameRate(1);\n    useSound();\n}\n\nfunction baymax() {\n    stroke(0);\n    strokeWeight(3);\n    ellipseMode(CENTER);\n    \/\/drop shadow\n    fill(\"grey\");\n    noStroke();\n    ellipse(width \/ 2, 350, 218, 54);\n    \/\/legs\n    stroke(0);\n    fill(\"white\");\n    ellipse(170, 300, 54, 90);\n    ellipse(230, 300, 54, 90);\n    \/\/arms\n    ellipse(145, 212, 68, 162);\n    ellipse(255, 212, 68, 162);\n    \/\/body\n    ellipse(200, 200, 145, 218);\n    \/\/face\n    ellipse(width \/ 2, 109, 145, 90);\n    \/\/mouth\n    line(163, 112, 236, 112);\n    \/\/eyes\n    fill(0);\n    ellipse(163, 112, 9, 18);\n    ellipse(236, 112, 9, 18);\n}\n\nfunction smile() {\n    arc(width \/ 2, 112, 73, 20, 0, PI, OPEN);\n}\n\nfunction spider() {\n    \/\/spider\n    push();\n    line(width \/ 2, 0, width \/ 2, 180);\n    fill(0);\n    ellipse(width \/ 2, 182, 10, 14);\n    ellipse(width \/ 2, 176, 8, 10);\n    strokeWeight(1);\n    for (i = 0; i &lt;= 3; i++) {\n        line(width \/ 2 + 4, 4 * i + 176, width \/ 2 + 8, 4 * i + 170);\n        line(width \/ 2 + 8, 4 * i + 170, width \/ 2 + 12, 4 * i + 176);\n        line(width \/ 2 - 4, 4 * i + 176, width \/ 2 - 8, 4 * i + 170);\n        line(width \/ 2 - 8, 4 * i + 170, width \/ 2 - 12, 4 * i + 176);\n        }\n    pop();\n}\n\nfunction question() {\n    text(\"?\", 100, 100);\n}\n\nfunction draw() {\n    if (frameCount &gt; 0) {\n    baymax();\n    }\n    if (frameCount &gt;= 7) {\n        spider();\n        spider.play();\n      }\n    if (frameCount &gt;= 10) {\n        question();\n        question.play();\n      }\n    if (frameCount &gt;= 9) {\n        smile();\n        baymax.play();\n      }\n    if (frameCount &gt; 18) {\n      frameCount === 1;\n      }\n}<\/code><\/pre><\/div>\n\n\n\n<p><\/p><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>sketch \/* Nami Numoto * Section A * mnumoto@andrew.cmu.edu * Project 10 *\/ \/\/tried to depict Baymax from Big Hero 6 \/\/interacting with a spider \/\/and going from being confused to happy \ud83d\ude42 var baymax; var spider; var question; function preload() { baymax = loadSound(&#8220;https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/ding.wav&#8221;); spider = loadSound(&#8220;https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/fall.wav&#8221;); question = loadSound(&#8220;https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/11\/questionmark.wav&#8221;); } function soundSetup() { &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/2021\/11\/06\/project-10-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Project 10&#8221;<\/span><\/a><\/p>\n","protected":false},"author":663,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[113,55],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/68692"}],"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\/663"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/comments?post=68692"}],"version-history":[{"count":1,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/68692\/revisions"}],"predecessor-version":[{"id":68707,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/68692\/revisions\/68707"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/media?parent=68692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/categories?post=68692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/tags?post=68692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}