updating logic for shading colors to logarithmic so its more smooth