This week for Little Computers, we were asked to use iPhone drawing techniques to create an app that utilized them in an interesting or animated way. Given the weather, I decided to use precipitation for inspiration, and made an app based around rain.
The app starts out (as above) with some clouds and a low lying body of water. As you shake your iPhone, the accelerometer detects the movement, and the app generates water drops in response. As the drops reach the body of water, it rises accordingly.
Once the body of water has risen to the edge of the clouds, it detects this, and holds off creating rain so it can have a moment to recede. After that, you can start all over again!
The shapes in the application were rendered in Quartz, the 2D rendering engine native to Mac OS.
github: FunWithDrawing