My third sample with the Corona SDK is something I called the Colour Canvas.
It didn’t really turn out how I had first thought – although I’m not sure what my goal here was, other than to have a look at masking and alphas. Basically you start with a black background, and as you click / touch parts of the screen, a new colour spot is created. This is assigned a random colour. The spots move on 5 different layers, each moving at a different speed and amount. As colours come into contact, they merge while overlapped.
I will probably do a follow up sample at some point, using masking and colours differently – in a slightly more useful way 😉
You can download the full source here: [Download]