It looks like it could be a video card problem, because I have seen something similar to this in Macs with busted video cards. However, I wouldn't totally rule out the possibility that it could be software-based.

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.