ovo.core.utils.colors

Module Contents

Functions

get_color_from_str

darken_lighten

Darken or lighten a hex color by multiplying its lightness component in HLS space. factor < 1 → darker, factor > 1 → lighter

lighten

darken

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)