Skip to content

Commit

Permalink
Update sketch_2025_01_01.py
Browse files Browse the repository at this point in the history
  • Loading branch information
villares authored Jan 2, 2025
1 parent 07b5741 commit 0c99624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2025/sketch_2025_01_01/sketch_2025_01_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def generate_regions(seed_points, w, h):
])
voronoi = Voronoi(extended_points)
shapely_regions = (
Polygon(voronoi.vertices[index] for index in vs if index != -1)
Polygon(voronoi.vertices[index] for index in vs)
for vs in voronoi.regions if vs and -1 not in vs
)
colored_regions = []
Expand Down

0 comments on commit 0c99624

Please sign in to comment.