RubyMotion version of the example in http://nachbaur.com/blog/core-animation-part-4