use graphics methods for screen dim