1
0

outline cell on the image map to make is more clear

This commit is contained in:
andrea
2025-07-28 22:39:17 +02:00
parent 87c0cefb56
commit 53189e3fd8

View File

@@ -105,6 +105,7 @@ class BrSimMap():
final_y= self.world_height * scale_y final_y= self.world_height * scale_y
image = _Image.new('RGB', (final_x, final_y)) image = _Image.new('RGB', (final_x, final_y))
draw = _ImageDraw.Draw(image) draw = _ImageDraw.Draw(image)
outline= '#000000'
for y in range(self.world_height): for y in range(self.world_height):
for x in range(self.world_width): for x in range(self.world_width):
@@ -135,7 +136,7 @@ class BrSimMap():
scaled_y_height= (y + 1) * scale_y scaled_y_height= (y + 1) * scale_y
draw.rectangle([scaled_x_coord, scaled_y_coord, scaled_x_width, scaled_y_height], draw.rectangle([scaled_x_coord, scaled_y_coord, scaled_x_width, scaled_y_height],
fill= pixel_color fill= pixel_color, outline= outline
) )
# debug # debug