{"id":75303,"date":"2022-11-06T00:53:00","date_gmt":"2022-11-06T04:53:00","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/?p=75303"},"modified":"2022-11-06T00:53:00","modified_gmt":"2022-11-06T04:53:00","slug":"project-09-portrait-2","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/11\/06\/project-09-portrait-2\/","title":{"rendered":"Project 09: Portrait"},"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>I really enjoyed this project and think this turned out cute. I especially like how the icons reinforce what the image is communicating (I really love fruit).<\/p>\n<div><a class=\"p5_sketch_link\" href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2022\/11\/sketch-22.js\" data-width=\"385\" data-height=\"480\">sketch<\/a>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"574\" height=\"705\" src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-06-001245.jpg\" alt=\"\" class=\"wp-image-75307\" srcset=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-06-001245.jpg 574w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-06-001245-244x300.jpg 244w\" sizes=\"(max-width: 574px) 85vw, 574px\"><figcaption>sketch after coloring with the mouse for a while<\/figcaption><\/figure><iframe src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/plugins\/p5-embedder\/p5_iframe.html\" class=\"p5_exampleFrame\" width=\"385\" height=\"480\"><\/iframe><pre class=\"language-javascript\"><code class=\"p5_editor language-javascript\">\/*\n    Joan Lee\n    Section D\n\n    This program draws a portrait of me GRIPPING my fruit with symbols that represent me loving fruit.\n*\/\n\nfunction preload() {\n    joan = loadImage(\"https:\/\/i.imgur.com\/eMJulaO.png\");\n}\n\nfunction setup() {\n    createCanvas(385, 480);\n    joan.resize(width, height);\n    background(255);\n    joan.loadPixels();\n}\n\nfunction draw() {\n    \/\/want the image to be revealed where the mouse is\n    var pixColor = joan.get(mouseX, mouseY);\n    \n    \/\/revealing image of me GRIPPING fruit with icons that resemble fruit and my love for it\n    noStroke();\n    iLoveFruit = [\"&hearts;\", \"&#8859;\", \"&#10050;\"];\n\n    for(var i = 0; i &lt; 3; i ++) {\n        fill(pixColor);\n        textSize(random(1, 10));\n        text(iLoveFruit[floor(random(iLoveFruit.length))], mouseX, mouseY);\n    }\n}<\/code><\/pre><\/div><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>I really enjoyed this project and think this turned out cute. I especially like how the icons reinforce what the image is communicating (I really love fruit). sketch \/* Joan Lee Section D This program draws a portrait of me GRIPPING my fruit with symbols that represent me loving fruit. *\/ function preload() { joan &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/11\/06\/project-09-portrait-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Project 09: Portrait&#8221;<\/span><\/a><\/p>\n","protected":false},"author":698,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[111,58],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/75303"}],"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\/698"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/comments?post=75303"}],"version-history":[{"count":4,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/75303\/revisions"}],"predecessor-version":[{"id":75310,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/75303\/revisions\/75310"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/media?parent=75303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/categories?post=75303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/tags?post=75303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}