barwy kategorii

This commit is contained in:
Mateusz Gruszczyński
2025-10-18 00:21:50 +02:00
parent 11065cd007
commit b24748a7b6

2
app.py
View File

@@ -955,7 +955,7 @@ def pick_hue_rotating(hv: int, used_hues: List[int], min_deg: int) -> int:
a, b = ALLOWED_HUE_SEGMENTS[0]
return a
def category_to_color_hls(name: str, used_hex_colors: List[str] = None,
def category_to_color(name: str, used_hex_colors: List[str] = None,
min_hue_gap_deg: int = 28) -> str:
"""
Zwraca bardzo ciemny kolor HEX z dozwolonych pasów hue, tak by unikać żółci i jasnych zieleni,