{"id":67498,"date":"2021-10-10T23:48:40","date_gmt":"2021-10-11T03:48:40","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/?p=67498"},"modified":"2021-10-10T23:48:40","modified_gmt":"2021-10-11T03:48:40","slug":"abstract-clock-4","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/2021\/10\/10\/abstract-clock-4\/","title":{"rendered":"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 class=\"wp-block-file\"><a class=\"p5_sketch_link\" data-width=\"600\" data-height=\"600\" href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-content\/uploads\/2021\/10\/sketch-71.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=\"600\" height=\"600\"><\/iframe><pre class=\"language-javascript\"><code class=\"p5_editor language-javascript\">var time = 0;\nvar pupil = 400;\n\nfunction setup() {\n    createCanvas(600, 600);\n    background(182, 217, 214);\n}\n\nfunction draw() {\n    fill(200, 200, 0);\n    ellipse(300, 300, 600, 400);\n    fill(0, 0, 0);\n    if(time &lt;= 720) pupil -= 0.4;\n    else pupil += 0.4;\n    ellipse(300, 300, pupil, 400);\n    time++;\n    time%=1440;\n\n}\n<\/code><\/pre><\/div>\n\n\n\n<p>This clock is inspired by this image, which claims that a cat&rsquo;s eyes will change during the day. Although not all that practical, I think it&rsquo;s a super cool idea.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/64.media.tumblr.com\/90827cabed557bfde12c9454aeba508b\/tumblr_inline_p24iz1SL0N1r6dnlv_250.gifv\" alt=\"Aren't Ordinary People Adorable? &mdash; My heart is crying so hard at this pls i  need a...\"><\/figure><p><\/p><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>sketch var time = 0; var pupil = 400; function setup() { createCanvas(600, 600); background(182, 217, 214); } function draw() { fill(200, 200, 0); ellipse(300, 300, 600, 400); fill(0, 0, 0); if(time &lt;= 720) pupil -= 0.4; else pupil += 0.4; ellipse(300, 300, pupil, 400); time++; time%=1440; } This clock is inspired by this image, &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/2021\/10\/10\/abstract-clock-4\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Abstract Clock&#8221;<\/span><\/a><\/p>\n","protected":false},"author":652,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[106,56],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/67498"}],"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\/652"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/comments?post=67498"}],"version-history":[{"count":2,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/67498\/revisions"}],"predecessor-version":[{"id":67507,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/posts\/67498\/revisions\/67507"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/media?parent=67498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/categories?post=67498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2021\/wp-json\/wp\/v2\/tags?post=67498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}