outline cell on the image map to make is more clear
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user