Editing iMac settings from an external Mac
This sounds like either a graphics card failure or a logic board failure: I would recommend getting the data off that drive ASAP and look at getting that machine diagnosed and repaired.