{"id":929,"date":"2020-07-03T05:02:04","date_gmt":"2020-07-03T05:02:04","guid":{"rendered":"https:\/\/www.thecodehub.ie\/news\/?p=929"},"modified":"2020-07-02T22:25:57","modified_gmt":"2020-07-02T22:25:57","slug":"coding-at-home-july-3rd-sonic-workshop-4","status":"publish","type":"post","link":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/","title":{"rendered":"Coding at Home: July 3rd, Sonic Workshop #4"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.thecodehub.ie\/live\/\">Join us today for some more functions at 1pm, Irish time<\/a>!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Super coders!<\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft size-medium is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"903\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/07\/01\/coding-at-home-july-1st-sonic-workshop-2\/image-52-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/06\/image-52.png?fit=436%2C338&amp;ssl=1\" data-orig-size=\"436,338\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-52\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/06\/image-52.png?fit=436%2C338&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/06\/image-52.png?resize=150%2C117&#038;ssl=1\" alt=\"\" class=\"wp-image-903\" width=\"150\" height=\"117\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/06\/image-52.png?resize=300%2C233&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/06\/image-52.png?w=436&amp;ssl=1 436w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><\/figure><\/div>\n\n\n\n<p>You guys have written some amazing code at this stage! I hope you had some time to play around with that touch moved code. We were using a bit of math to figure out where the <code>x<\/code> position of our touch was, then we divided that by the width of our graphic. This was just to get us a number to plug into the <code>Color<\/code> initializer. And it was a little bit to show off how we get the updated position of the user\u2019s finger on the graphic. <\/p>\n\n\n\n<p>We fed that color into the <code>setTintColor<\/code> method on our graphic to visually show how often that new handler we set gets called.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Today\u2019s session<\/h2>\n\n\n\n<p>Today we\u2019re going to add a touch handler for when someone presses on the graphic.<\/p>\n\n\n\n<p>We\u2019ve done this before in previous pages. But this time we\u2019ll use some of the other functions defined by the playground for playing music.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"946\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/image-71\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image.jpeg?fit=2048%2C1536&amp;ssl=1\" data-orig-size=\"2048,1536\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1593727313&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"image\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image.jpeg?fit=840%2C630&amp;ssl=1\" src=\"https:\/\/i1.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image.jpeg?fit=840%2C630&amp;ssl=1\" alt=\"\" class=\"wp-image-946\" width=\"420\" height=\"315\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image.jpeg?w=2048&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image.jpeg?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image.jpeg?resize=1024%2C768&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image.jpeg?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image.jpeg?resize=1536%2C1152&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image.jpeg?resize=1200%2C900&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image.jpeg?w=1680&amp;ssl=1 1680w\" sizes=\"auto, (max-width: 420px) 85vw, 420px\" \/><\/figure><\/div>\n\n\n\n<p>We\u2019ll spend a lot of time customizing the behavior of our graphic when we tap on it. And we\u2019ll also spend some time exploring all those messages to our <code>onTouchMovedHandler<\/code>. Maybe we can come up with some other use for them?<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"950\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/image-2-9\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image-2.jpeg?fit=878%2C537&amp;ssl=1\" data-orig-size=\"878,537\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1593729537&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"image-2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image-2.jpeg?fit=840%2C514&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image-2.jpeg?resize=439%2C269&#038;ssl=1\" alt=\"\" class=\"wp-image-950\" width=\"439\" height=\"269\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image-2.jpeg?w=878&amp;ssl=1 878w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image-2.jpeg?resize=300%2C183&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/07\/image-2.jpeg?resize=768%2C470&amp;ssl=1 768w\" sizes=\"auto, (max-width: 439px) 85vw, 439px\" \/><figcaption>You can get as creative as you like with your function names, you just may sacrifice your sanity with <em><strong>some<\/strong><\/em> names. <\/figcaption><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>We\u2019ll see you at 1pm!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Join us today for some more functions at 1pm, Irish time! Super coders! You guys have written some amazing code at this stage! I hope you had some time to play around with that touch moved code. We were using a bit of math to figure out where the x position of our touch was, &hellip; <a href=\"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Coding at Home: July 3rd, Sonic Workshop #4&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Coding at Home: July 3rd, Sonic Workshop #4\n\nWe go a little wild, customizing our Sonic Workshop playground today!\n\nSee you at 1pm, Irish time.","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[9,4,8],"tags":[],"class_list":["post-929","post","type-post","status-publish","format-standard","hentry","category-coding-at-home","category-programming","category-swift-playgrounds"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Coding at Home: July 3rd, Sonic Workshop #4 &#060; The Code Hub<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Coding at Home: July 3rd, Sonic Workshop #4 &#060; The Code Hub\" \/>\n<meta property=\"og:description\" content=\"Join us today for some more functions at 1pm, Irish time! Super coders! You guys have written some amazing code at this stage! I hope you had some time to play around with that touch moved code. We were using a bit of math to figure out where the x position of our touch was, &hellip; Continue reading &quot;Coding at Home: July 3rd, Sonic Workshop #4&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/\" \/>\n<meta property=\"og:site_name\" content=\"The Code Hub\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/thecodehub\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-03T05:02:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/06\/image-52-300x233.png\" \/>\n<meta name=\"author\" content=\"mhanlon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@thecodehubIE\" \/>\n<meta name=\"twitter:site\" content=\"@thecodehubIE\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"mhanlon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/07\\\/03\\\/coding-at-home-july-3rd-sonic-workshop-4\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/07\\\/03\\\/coding-at-home-july-3rd-sonic-workshop-4\\\/\"},\"author\":{\"name\":\"mhanlon\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/person\\\/5a4e2bec3c92667356dda979a9f61fcd\"},\"headline\":\"Coding at Home: July 3rd, Sonic Workshop #4\",\"datePublished\":\"2020-07-03T05:02:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/07\\\/03\\\/coding-at-home-july-3rd-sonic-workshop-4\\\/\"},\"wordCount\":243,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/07\\\/03\\\/coding-at-home-july-3rd-sonic-workshop-4\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-52-300x233.png\",\"articleSection\":[\"Coding at Home\",\"Programming\",\"Swift Playgrounds\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/07\\\/03\\\/coding-at-home-july-3rd-sonic-workshop-4\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/07\\\/03\\\/coding-at-home-july-3rd-sonic-workshop-4\\\/\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/07\\\/03\\\/coding-at-home-july-3rd-sonic-workshop-4\\\/\",\"name\":\"Coding at Home: July 3rd, Sonic Workshop #4 &#060; The Code Hub\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/07\\\/03\\\/coding-at-home-july-3rd-sonic-workshop-4\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/07\\\/03\\\/coding-at-home-july-3rd-sonic-workshop-4\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-52-300x233.png\",\"datePublished\":\"2020-07-03T05:02:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/07\\\/03\\\/coding-at-home-july-3rd-sonic-workshop-4\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/07\\\/03\\\/coding-at-home-july-3rd-sonic-workshop-4\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/07\\\/03\\\/coding-at-home-july-3rd-sonic-workshop-4\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-52.png?fit=436%2C338&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-52.png?fit=436%2C338&ssl=1\",\"width\":436,\"height\":338},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/07\\\/03\\\/coding-at-home-july-3rd-sonic-workshop-4\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Coding at Home: July 3rd, Sonic Workshop #4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#website\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\",\"name\":\"The Code Hub\",\"description\":\"News from the Code Hub\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\",\"name\":\"The Code Hub\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1\",\"width\":226,\"height\":264,\"caption\":\"The Code Hub\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/facebook.com\\\/thecodehub\",\"https:\\\/\\\/x.com\\\/thecodehubIE\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCx4bznoGDfjJRPfTa4LF9dA\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/person\\\/5a4e2bec3c92667356dda979a9f61fcd\",\"name\":\"mhanlon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"caption\":\"mhanlon\"},\"sameAs\":[\"https:\\\/\\\/www.thecodehub.ie\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Coding at Home: July 3rd, Sonic Workshop #4 &#060; The Code Hub","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/","og_locale":"en_US","og_type":"article","og_title":"Coding at Home: July 3rd, Sonic Workshop #4 &#060; The Code Hub","og_description":"Join us today for some more functions at 1pm, Irish time! Super coders! You guys have written some amazing code at this stage! I hope you had some time to play around with that touch moved code. We were using a bit of math to figure out where the x position of our touch was, &hellip; Continue reading \"Coding at Home: July 3rd, Sonic Workshop #4\"","og_url":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/","og_site_name":"The Code Hub","article_publisher":"http:\/\/facebook.com\/thecodehub","article_published_time":"2020-07-03T05:02:04+00:00","og_image":[{"url":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/06\/image-52-300x233.png","type":"","width":"","height":""}],"author":"mhanlon","twitter_card":"summary_large_image","twitter_creator":"@thecodehubIE","twitter_site":"@thecodehubIE","twitter_misc":{"Written by":"mhanlon","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/#article","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/"},"author":{"name":"mhanlon","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/person\/5a4e2bec3c92667356dda979a9f61fcd"},"headline":"Coding at Home: July 3rd, Sonic Workshop #4","datePublished":"2020-07-03T05:02:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/"},"wordCount":243,"commentCount":0,"publisher":{"@id":"https:\/\/www.thecodehub.ie\/news\/#organization"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/06\/image-52-300x233.png","articleSection":["Coding at Home","Programming","Swift Playgrounds"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/","url":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/","name":"Coding at Home: July 3rd, Sonic Workshop #4 &#060; The Code Hub","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/#primaryimage"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/06\/image-52-300x233.png","datePublished":"2020-07-03T05:02:04+00:00","breadcrumb":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/#primaryimage","url":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/06\/image-52.png?fit=436%2C338&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/06\/image-52.png?fit=436%2C338&ssl=1","width":436,"height":338},{"@type":"BreadcrumbList","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/07\/03\/coding-at-home-july-3rd-sonic-workshop-4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thecodehub.ie\/news\/"},{"@type":"ListItem","position":2,"name":"Coding at Home: July 3rd, Sonic Workshop #4"}]},{"@type":"WebSite","@id":"https:\/\/www.thecodehub.ie\/news\/#website","url":"https:\/\/www.thecodehub.ie\/news\/","name":"The Code Hub","description":"News from the Code Hub","publisher":{"@id":"https:\/\/www.thecodehub.ie\/news\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thecodehub.ie\/news\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.thecodehub.ie\/news\/#organization","name":"The Code Hub","url":"https:\/\/www.thecodehub.ie\/news\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2018\/02\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2018\/02\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1","width":226,"height":264,"caption":"The Code Hub"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/facebook.com\/thecodehub","https:\/\/x.com\/thecodehubIE","https:\/\/www.youtube.com\/channel\/UCx4bznoGDfjJRPfTa4LF9dA"]},{"@type":"Person","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/person\/5a4e2bec3c92667356dda979a9f61fcd","name":"mhanlon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","caption":"mhanlon"},"sameAs":["https:\/\/www.thecodehub.ie"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9ABLU-eZ","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/comments?post=929"}],"version-history":[{"count":20,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/929\/revisions"}],"predecessor-version":[{"id":954,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/929\/revisions\/954"}],"wp:attachment":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/media?parent=929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/categories?post=929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/tags?post=929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}