Skip to content

Commit

Permalink
main.py (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonim authored Jan 3, 2025
1 parent 5d1d2c6 commit 7704329
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/visualizer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def depth_to_grayscale(depth: int) -> str:
"""Convert depth to a grayscale color."""
if depth == 1:
return "red"
return f"grey{depth + 10 + (depth - 1) // 9}"
return f"gray{depth + 10 + (depth - 1) // 9}"

# Unused because I don't visualize edges
def color_edge(edge):
Expand Down Expand Up @@ -231,7 +231,7 @@ def size_center_node(node: Package):
out_dict = {
"label": label_nodes(node),
"fontsize": "5",
"fontcolor": "grey",
"fontcolor": "gray",
"fontname": "Menlo",
"color": depth_to_grayscale(node.depth),
"shape": "circle",
Expand Down

0 comments on commit 7704329

Please sign in to comment.