change drawTrig to use gammatable to determine color of diode square