mkt.databases.colors.interpolate_color
- mkt.databases.colors.interpolate_color(norm_value: float, start_color_hex: str, end_color_hex: str) str[source]
Interpolate between two colors based on normalized value.
Parameters:
- norm_valuefloat
Normalized value between 0 and 1.
- start_color_hexstr
Starting color in hex format (e.g., “#FFFFFF”).
- end_color_hexstr
Ending color in hex format (e.g., “#FF0000”).
Returns:
- str
Interpolated color in hex format.