{"id":625,"date":"2012-03-21T19:43:02","date_gmt":"2012-03-21T19:43:02","guid":{"rendered":"http:\/\/blogs.kent.ac.uk\/mik\/?p=625"},"modified":"2020-05-15T15:46:55","modified_gmt":"2020-05-15T15:46:55","slug":"joc-23","status":"publish","type":"post","link":"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/03\/21\/joc-23\/","title":{"rendered":"JoC #23: Animating the image"},"content":{"rendered":"<p><em>\u00a0 \u00a0 \u00a0 A positive attitude may not solve all your problems, <\/em><br \/>\n<em>\u00a0 \u00a0 \u00a0 but it will annoy enough people to make it worth the effort.<\/em><br \/>\n<em>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2014 attributed to Herman Oliver Albright<\/em><\/p>\n<p>A last little bit before we leave our coloured circles behind: an animation. In this case, it&#8217;s a very simple one: fading out the circles. But it shows an important technique: The appearance of an actor can change all the time, if we want to. This is the basis for many visual effects.<\/p>\n<p>And, we finally see an if-statement with an else clause! I can&#8217;t believe that it took this long for this to pop up.<\/p>\n<p><iframe loading=\"lazy\" title=\"The Joy of Code #23: Animating the image\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/zwZbt9NEdEQ?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 style=\"text-align: right\"><a href=\"http:\/\/www.greenfoot.org\/static\/joc\/mov\/JOC-23.mov\">Download video<\/a><\/p>\n<p><strong>Concepts discussed<\/strong>:\u00a0<em>transparency, dynamically changing images, if-statement<\/em><\/p>\n<div><em><br \/>\n<\/em><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 \u00a0 A positive attitude may not solve all your problems, \u00a0 \u00a0 \u00a0 but it will annoy enough people to make it worth the effort. \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2014 attributed to Herman Oliver Albright A &hellip; <a href=\"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/03\/21\/joc-23\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":179,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,6],"tags":[57,58],"class_list":["post-625","post","type-post","status-publish","format-standard","hentry","category-greenfoot-software-tools","category-joy-of-code","tag-if-statement","tag-image-manipulation"],"_links":{"self":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/users\/179"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/comments?post=625"}],"version-history":[{"count":1,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/625\/revisions"}],"predecessor-version":[{"id":1088,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/625\/revisions\/1088"}],"wp:attachment":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/media?parent=625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/categories?post=625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/tags?post=625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}