Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I'll guess that something in the graphics system failed.
Whether you want to fix it on an 8-year-old iMac is... up to you.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.