Factor code into drawTicks & add colored tick intervals.