Sigmoid function for color computation added