ovo.core.utils.colors¶
Module Contents¶
Functions¶
Darken or lighten a hex color by multiplying its lightness component in HLS space. factor < 1 → darker, factor > 1 → lighter |
|
API¶
- ovo.core.utils.colors.get_color_from_str(value: str, colormap_name: str) str¶
- ovo.core.utils.colors.darken_lighten(hex_color, factor: float)¶
Darken or lighten a hex color by multiplying its lightness component in HLS space. factor < 1 → darker, factor > 1 → lighter
- ovo.core.utils.colors.lighten(hex_color, factor=1.3)¶
- ovo.core.utils.colors.darken(hex_color, factor=1.3)¶