{"id":3051,"date":"2021-01-31T21:33:33","date_gmt":"2021-01-31T21:33:33","guid":{"rendered":"http:\/\/mycours.es\/digitalmedia\/?page_id=3051"},"modified":"2025-03-24T12:57:00","modified_gmt":"2025-03-24T12:57:00","slug":"p5-interaction-mouse-input","status":"publish","type":"page","link":"https:\/\/mycours.es\/digitalmedia\/p5-interaction-mouse-input\/","title":{"rendered":"p5: interaction, mouse input"},"content":{"rendered":"<p><iframe loading=\"lazy\" title=\"draw function and mouse coordinates\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/_IiVzQVz6zg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p><a href=\"https:\/\/openprocessing.org\/sketch\/1084947\">line example<\/a><\/p>\n<p><iframe loading=\"lazy\" title=\"mouse press and mouse events\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/mK1Fz0_mzpI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p><a href=\"https:\/\/openprocessing.org\/sketch\/1084960\">mouse press with if statement example<\/a> + mouse events, advance the tutorial to see it<\/p>\n<h2>Exercises<\/h2>\n<p>Reproduce the sketches in this video (the canvas are 500&#215;500 pixels).<br \/>\nThey don&#8217;t have to be exact replicas, try to approximate their general behavior.<br \/>\nPost them to the discord at the <strong>beginning<\/strong> of the next class, remember to save them!<br \/>\n<strong>Remember to save your sketches with non-random names and to create a new sketch for each of the 4 exercises<\/strong>.<\/p>\n<p><a href=\"https:\/\/openprocessing.org\/sketch\/2533545\">Mouse Exercise 1<\/a><br \/>\n<a href=\"https:\/\/openprocessing.org\/sketch\/2541900\">Mouse Exercise 2<\/a><br \/>\n<a href=\"https:\/\/openprocessing.org\/sketch\/2541903\">Mouse Exercise 3<\/a><br \/>\n<a href=\"https:\/\/openprocessing.org\/sketch\/2541907\">Mouse Exercise 4<\/a><\/p>\n<p><iframe loading=\"lazy\" title=\"mouse exercises\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/UDeKALvBO3U?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>line example mouse press with if statement example + mouse events, advance the tutorial to see it Exercises Reproduce the sketches in this video (the canvas are 500&#215;500 pixels). They don&#8217;t have to be exact replicas, try to approximate their general behavior. Post them to the discord at the beginning of the next class, remember &hellip; <a href=\"https:\/\/mycours.es\/digitalmedia\/p5-interaction-mouse-input\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;p5: interaction, mouse input&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":30,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3051","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mycours.es\/digitalmedia\/wp-json\/wp\/v2\/pages\/3051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mycours.es\/digitalmedia\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mycours.es\/digitalmedia\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mycours.es\/digitalmedia\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mycours.es\/digitalmedia\/wp-json\/wp\/v2\/comments?post=3051"}],"version-history":[{"count":10,"href":"https:\/\/mycours.es\/digitalmedia\/wp-json\/wp\/v2\/pages\/3051\/revisions"}],"predecessor-version":[{"id":4063,"href":"https:\/\/mycours.es\/digitalmedia\/wp-json\/wp\/v2\/pages\/3051\/revisions\/4063"}],"wp:attachment":[{"href":"https:\/\/mycours.es\/digitalmedia\/wp-json\/wp\/v2\/media?parent=3051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}