Preparation for updated color mode.

Moved the color calculations off to a delegate which is the grid.