This commit is contained in:
2024-06-24 23:42:15 +02:00
parent a364c7809c
commit af2c5c66c8
25 changed files with 17 additions and 25 deletions

View File

@@ -97,7 +97,7 @@ def area_of_rectangles(rectangles):
def generate_building(image: str | Image.Image, heightmap: str | Image.Image, output: str = './world_maker/data/building.png',
number_of_try: int = 1, min_width: int = 10, max_width: int = 25):
number_of_try: int = 3, min_width: int = 10, max_width: int = 25):
print("[Building] Start generating building position...")
image = handle_import_image(image).convert('L')
rectangles_output = []