mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-06 12:51:53 +02:00
Fix documentation.
This commit is contained in:
parent
c7811a3218
commit
b2a071b4b3
6 changed files with 10 additions and 16 deletions
|
@ -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:])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue