A positive attitude may not solve all your problems,
but it will annoy enough people to make it worth the effort.
— attributed to Herman Oliver Albright
A last little bit before we leave our coloured circles behind: an animation. In this case, it’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.
And, we finally see an if-statement with an else clause! I can’t believe that it took this long for this to pop up.
Concepts discussed: transparency, dynamically changing images, if-statement