Implements proper color gradient for heithtmap and activity overlays.