{"id":60,"date":"2015-09-15T06:31:34","date_gmt":"2015-09-15T06:31:34","guid":{"rendered":"http:\/\/www.aaronparsekian.com\/?p=60"},"modified":"2015-09-15T12:57:04","modified_gmt":"2015-09-15T12:57:04","slug":"assignment-2","status":"publish","type":"post","link":"http:\/\/www.aaronparsekian.com\/?p=60","title":{"rendered":"Assignment #2"},"content":{"rendered":"<p>This week we learned about how to control sketches with mouse and key inputs. I decided to write a sketch that could be used with a projector for a live performance.<\/p>\n<p>It includes five different looks that are controlled via the q,w,e,r,t keys. The mouse is used for movement, and left mouse click clears the drawing.<\/p>\n<p>The code is pretty simple. The main part of it runs off an &#8216;if&#8217; statement linked to the five key presses. Each one uses variables to control color, size, and wether it is drawing a line or a point<\/p>\n<p><a href=\"http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/screen1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-62\" src=\"http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/screen1-193x300.png\" alt=\"screen1\" width=\"193\" height=\"300\" srcset=\"http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/screen1-193x300.png 193w, http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/screen1-658x1024.png 658w, http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/screen1.png 814w\" sizes=\"auto, (max-width: 193px) 100vw, 193px\" \/><\/a><\/p>\n<p>Here is the projection setup \ud83d\ude42<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/IMG_0779.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-63\" src=\"http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/IMG_0779-300x225.jpg\" alt=\"IMG_0779\" width=\"300\" height=\"225\" srcset=\"http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/IMG_0779-300x225.jpg 300w, http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/IMG_0779-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/IMG_0786.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-64\" src=\"http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/IMG_0786-300x225.jpg\" alt=\"IMG_0786\" width=\"300\" height=\"225\" srcset=\"http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/IMG_0786-300x225.jpg 300w, http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/IMG_0786-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/IMG_0787.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-69\" src=\"http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/IMG_0787-300x225.jpg\" alt=\"IMG_0787\" width=\"300\" height=\"225\" srcset=\"http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/IMG_0787-300x225.jpg 300w, http:\/\/www.aaronparsekian.com\/wp-content\/uploads\/2015\/09\/IMG_0787-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The program itself:\u00a0<a href=\"http:\/\/www.aaronparsekian.com\/projects\/ICMassignment2\/\">http:\/\/www.aaronparsekian.com\/projects\/ICMassignment2\/<\/a><\/p>\n<p>And a short video of it in action:<\/p>\n<p><iframe loading=\"lazy\" title=\"projectionProj1\" src=\"https:\/\/player.vimeo.com\/video\/139308706?dnt=1&amp;app_id=122963\" width=\"660\" height=\"371\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture; clipboard-write\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week we learned about how to control sketches with mouse and key inputs. I decided to write a sketch that could be used with a projector for a live performance. It includes five different looks that are controlled via the q,w,e,r,t keys. The mouse is used for movement, and left mouse click clears the &hellip; <a href=\"http:\/\/www.aaronparsekian.com\/?p=60\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Assignment #2<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-icm"],"_links":{"self":[{"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=60"}],"version-history":[{"count":5,"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":70,"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions\/70"}],"wp:attachment":[{"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}