values: Color values to be used at minimum uncertainty. Needs to be a vector of length 2^unc_levels.
unc_levels: Number of discrete uncertainty levels. The number of discrete colors at each level doubles.
max_light: Maximum amount of lightening
max_desat: Maximum amount of desaturation
pow_light: Power exponent of lightening
pow_desat: Power exponent of desaturation
Returns
A function that takes two parameters, v (value) and u (uncertainty), both expected to be in the range of 0 to 1, and returns a color. This color is determined by the specified values colors at minimum uncertainty, and modified according to the given v and u parameters to represent uncertainty by adjusting lightness and saturation. The resulting function is useful for creating color palettes that can encode both value and uncertainty in visualizations.