This would make an awesome screensaver! The shape variable in the corner determines what shapes spawn. If it is set to 0 all shapes will spawn. If it is set to 1 only squares will spawn. If it is set to 2 only triangles will spawn. If it is set to 3 only circles will spawn.
If you want, use turbo mode (May cause seizures)