Skip to content

Commit

Permalink
minor example fix
Browse files Browse the repository at this point in the history
  • Loading branch information
superstes committed Jan 17, 2025
1 parent 991cce5 commit 40922a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/generate_map_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

# pylint: disable=R0911
def _get_color(height: float, max_height: float):
factor = 255 / max_height
factor = 255 / max(1, max_height)
h = height * factor

h = min(max(h, 0), 255)
Expand Down

0 comments on commit 40922a4

Please sign in to comment.