Returns a palette function that turns `v` (value) and `u` (uncertainty) (both between 0 and 1) into colors.
pal_vsup(
values,
unc_levels = 4,
max_light = 0.9,
max_desat = 0,
pow_light = 0.8,
pow_desat = 1
)
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.
Color values to be used at minimum uncertainty. Needs to be a vector of length `2^unc_levels`.
Number of discrete uncertainty levels. The number of discrete colors at each level doubles.
Maximum amount of lightening
Maximum amount of desaturation
Power exponent of lightening
Power exponent of desaturation