forked from: AnimationSample 

see http://gihyo.jp/design/feature/01/frocessing/0003