created degree threshold color formula