ObjectMovingBalls

Description: Draws coloured circles moving at different speeds around a square
Programmer: George Wright
Compiler: Smart Mobile Studio 2.2

Introduction

George was trying object-oriented code for the first time when he created this interesting visual effect. The title refers to moving balls, but in the absence of background refreshes the "balls" soon adopt different shapes. The code follows the graphic in action. If ObjectMovingBalls does not run in your current browser, please try another (such as Chrome).

Features

Array of objects, c-style operators, Ellipse, FillRectF, BeginPath, Fill, ClosePath