Created a getMaskRangesForColor function which returns the threshold ranges for a color constant