{"id":128383,"date":"2021-06-10T13:00:14","date_gmt":"2021-06-10T13:00:14","guid":{"rendered":"https:\/\/developer.apple.com\/news\/?id=w20nqtro"},"modified":"2021-06-10T13:00:14","modified_gmt":"2021-06-10T13:00:14","slug":"challenge-create-fun-visual-effects-in-swift-playgrounds","status":"publish","type":"post","link":"https:\/\/sickgaming.net\/blog\/2021\/06\/10\/challenge-create-fun-visual-effects-in-swift-playgrounds\/","title":{"rendered":"Challenge: Create fun visual effects in Swift Playgrounds"},"content":{"rendered":"<div class=\"inline-article-image\"><img decoding=\"async\" src=\"https:\/\/www.sickgaming.net\/blog\/wp-content\/uploads\/2022\/09\/challenge-create-fun-visual-effects-in-swift-playgrounds.jpg\" data-hires=\"false\" alt=\"Hammer symbol and paint brush symbol\"><\/div>\n<p>Ever wonder how to make it seem like confetti is raining down from the sky? Or how to create a kaleidoscope effect using code? In this challenge, your goal is to create a compelling visual effect using the Shapes book from the Swift Playgrounds app. Maybe it\u2019s a constellation of objects revolving in intriguing mathematical patterns, or a textural and fluid shape that adapts to your touch. It\u2019s all up to you: What kind of visual effect would you like to dream up?<\/p>\n<h3>Begin the challenge<\/h3>\n<p>To get started, download and open Swift Playgrounds on your iPad or Mac, then select See All from the lower right corner to launch the Swift Playgrounds content screen. From here, you can find the Shapes book under \u201cStarting Points\u201d and download a copy to your device.<\/p>\n<div class=\"inline-article-image\"><img decoding=\"async\" src=\"https:\/\/www.sickgaming.net\/blog\/wp-content\/uploads\/2022\/09\/challenge-create-fun-visual-effects-in-swift-playgrounds-1.jpg\" data-hires=\"false\" alt=\"Swift Playgrounds app showing downloadable books and challenges\"><\/div>\n<p>The Shapes starting point has some great examples to reference as you get started. Check out the page \u201cShape Graphics\u201d to explore the book\u2019s basic API for creating all shape types and placing them in the scene. \u201cTouches and Animations\u201d will show you how to apply animations to shapes and use touch events to drive behaviors. And finally \u201cSprite Shapes\u201d can help you learn how to set up physics interactions between different shapes. From there, you\u2019ll have all you need to create your own visual composition. <\/p>\n<p>Want to show off your visual concept to the community? You can share your creation (or creation-in-progress) on the Developer Forums.<\/p>\n<p><a href=\"https:\/\/developer.apple.com\/forums\/\" class=\"icon icon-after icon-chevronright\">Visit the Apple Developer Forums<\/a><\/p>\n<h3>Resources<\/h3>\n<p><a href=\"https:\/\/apps.apple.com\/us\/app\/swift-playgrounds\/id1496833156?mt=12\" class=\"icon icon-after icon-chevronright\">Download Swift Playgrounds for macOS<\/a><\/p>\n<p><a href=\"https:\/\/developer.apple.com\/swift-playgrounds\/\" class=\"icon icon-after icon-chevronright\">Learn more about Swift Playgrounds<\/a><\/p>\n<p><a href=\"https:\/\/developer.apple.com\/wwdc21\/challenges\/terms\/WWDC21_Challenge_Terms_Conditions.pdf\" class=\"icon icon-after icon-chevronright\">Read the WWDC21 Challenges Terms and Conditions<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever wonder how to make it seem like confetti is raining down from the sky? Or how to create a kaleidoscope effect using code? In this challenge, your goal is to create a compelling visual effect using the Shapes book from the Swift Playgrounds app. Maybe it\u2019s a constellation of objects revolving in intriguing mathematical [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":128384,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[],"class_list":["post-128383","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apple-developer-news"],"_links":{"self":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/128383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/comments?post=128383"}],"version-history":[{"count":0,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/128383\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media\/128384"}],"wp:attachment":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media?parent=128383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/categories?post=128383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/tags?post=128383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}