mapCoordinatesToColor function

Determine color values according to a given range of values.