{"id":67400,"date":"2021-10-10T21:07:41","date_gmt":"2021-10-11T01:07:41","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/?p=67400"},"modified":"2021-10-10T21:09:01","modified_gmt":"2021-10-11T01:09:01","slug":"project-06-abstract-clock-8","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/2021\/10\/10\/project-06-abstract-clock-8\/","title":{"rendered":"Project 06: Abstract Clock"},"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> <a class=\"p5_sketch_link\" data-width=\"480\" data-height=\"480\" href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/sketch-60.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=\"480\" height=\"480\"><\/iframe><pre class=\"language-javascript\"><code class=\"p5_editor language-javascript\">\/\/Julianna Bolivar\n\/\/jbolivar@andrew.cmu.edu\n\/\/Section D\n\/\/Assignment 06-A: Abstract Clock\n\n\nfunction setup() {\n    createCanvas(480, 480);\n}\n\nfunction draw() {\n    var minu = minute();\n    \/\/sky darkens by the hour\n    background(hour()*5);\n    \n    \/\/scoop slowly falls by the minute\n    for (var col = 0; col &lt;= 5 * minu; col+=1) { \n        fill(\"pink\");\n        push();\n        translate(225, 40);\n        circle(0, col, 20);\n        pop();\n\n    } \n\n    \/\/arm waves for each second\n    if (second()%2 == 0){\n        line(150, 350, 100, 325);\n    } else if (second()%2 != 0){\n        line(150, 350, 100, 375);\n    } \n\n     \/\/stick figure man\n    fill(\"white\");\n    circle(150, 300, 50); \/\/head\n    fill(\"black\");\n    circle(140, 298, 5);\n    circle(160, 298, 5);\n    line(150, 325, 150, 400); \/\/back\n    line(150, 400, 125, 450); \/\/left leg\n    line(150, 400, 175, 450); \/\/right leg\n    line(150, 350, 225, 350); \/\/arm with ice cream\n    fill(250, 215, 160);\n    triangle(225, 365, 215, 345, 235, 345); \/\/ice cream cone\n\n\n}<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"622\" src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/IMG_F2E3209957CF-1-1024x622.jpeg\" alt=\"\" class=\"wp-image-67404\" srcset=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/IMG_F2E3209957CF-1-1024x622.jpeg 1024w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/IMG_F2E3209957CF-1-300x182.jpeg 300w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/IMG_F2E3209957CF-1-768x467.jpeg 768w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/IMG_F2E3209957CF-1.jpeg 1170w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\"><figcaption>Drawing of what I wanted to make.<\/figcaption><\/figure><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"994\" src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-10-at-8.59.10-PM-1024x994.png\" alt=\"\" class=\"wp-image-67407\" srcset=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-10-at-8.59.10-PM-1024x994.png 1024w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-10-at-8.59.10-PM-300x291.png 300w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-10-at-8.59.10-PM-768x746.png 768w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-10-at-8.59.10-PM.png 1034w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\"><figcaption>8:59PM.<\/figcaption><\/figure><p>I really wanted the program to have ice cream scoops stacking, but I couldn&rsquo;t figure out a way to do it without my code crashing (since the y of the circle would have to be -=, but you can&rsquo;t have negative minutes). Instead it is falling very slowly until it falls onto the cone at 59 minutes.<\/p><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>I really wanted the program to have ice cream scoops stacking, but I couldn&rsquo;t figure out a way to do it without my code crashing (since the y of the circle would have to be -=, but you can&rsquo;t have negative minutes). Instead it is falling very slowly until it falls onto the cone at &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/2021\/10\/10\/project-06-abstract-clock-8\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Project 06: Abstract Clock&#8221;<\/span><\/a><\/p>\n","protected":false},"author":640,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[106,58],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/67400"}],"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\/640"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/comments?post=67400"}],"version-history":[{"count":2,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/67400\/revisions"}],"predecessor-version":[{"id":67408,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/67400\/revisions\/67408"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/media?parent=67400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/categories?post=67400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/tags?post=67400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}