Fix documentation.

This commit is contained in:
Sergey Vartanov 2022-06-25 21:01:13 +03:00
parent c7811a3218
commit b2a071b4b3
6 changed files with 10 additions and 16 deletions

View file

@ -74,9 +74,7 @@ def line_center(
def get_user_color(text: str, seed: str) -> Color:
"""
Generate random color based on text.
"""
"""Generate random color based on text."""
if text == "":
return Color("black")
return Color("#" + sha256((seed + text).encode("utf-8")).hexdigest()[-6:])