Sea fill for the bottom-left corner only; restore the other three corners
The outpainted top-left, top-right and bottom-right corners of
overall-square.png are back to the 72fa9f5 version; only the bottom-left
corner is flat sea (#121818, with the 96 px flat-margin feather along its
edge). tools/sea_corner.py defaults to bottom_left again. Overall tiles rebuilt.
Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
5f1ff26832
commit
2e26c485c7
3 files changed
+9
-9
No files matched your search
Binary file not shown.
+6
-6
@@ -1,7 +1,7 @@
|
||||
"""Fill outpainted corner triangles of the square base map with flat sea colour.
|
||||
|
||||
python tools/sea_corner.py # all four corners, flat #121818
|
||||
python tools/sea_corner.py bottom_left # one corner only
|
||||
python tools/sea_corner.py # bottom_left (the open-sea corner), flat #121818
|
||||
python tools/sea_corner.py bottom_left bottom_right # several corners
|
||||
python tools/sea_corner.py --color sample # per-corner median of the sea next to it
|
||||
python tools/sea_corner.py --dry-run # write build/sea-corner-preview.png only
|
||||
|
||||
@@ -9,8 +9,8 @@ tools/square_base.py rotates sources/overall/overall.jpeg by 45 degrees and
|
||||
outpaints the four empty corner triangles with AI imagery. But the source is
|
||||
a feathered "cropped map" lying on a uniform dark sea background (its whole
|
||||
left, bottom and right margins and most of the top are flat, median #121818),
|
||||
so anything outside it is sea and the invented coastline/land in the corners
|
||||
is wrong. This replaces the corners with one flat colour. The corner region
|
||||
so the invented coastline in the open-sea bottom-left corner is wrong. This
|
||||
replaces a corner with one flat colour (default: bottom_left). The corner region
|
||||
is exactly the rotated source's alpha == 0 area in that quadrant. The source's
|
||||
own flat margin just inside the diamond is a little brighter than the fill in
|
||||
places, which would draw the diamond outline, so --feather (default 96 px)
|
||||
@@ -107,7 +107,7 @@ def parse_colour(value: str) -> tuple[int, int, int] | None:
|
||||
def main(argv: list[str] | None = None) -> None:
|
||||
parser = argparse.ArgumentParser(description=__doc__.split("\n\n")[0])
|
||||
parser.add_argument("corners", nargs="*", choices=CORNERS,
|
||||
help="corners to fill (default: all four)")
|
||||
help="corners to fill (default: bottom_left)")
|
||||
parser.add_argument("--image", type=Path, help="square base image (default: maps.json world.image)")
|
||||
parser.add_argument("--source", type=Path, default=ROOT / "sources" / "overall" / "overall.jpeg",
|
||||
help="unrotated source the square image was made from")
|
||||
@@ -136,7 +136,7 @@ def main(argv: list[str] | None = None) -> None:
|
||||
flat = flatness(source_rgb) if args.feather > 0 else None
|
||||
|
||||
out = rgb.copy()
|
||||
for corner in dict.fromkeys(args.corners or CORNERS):
|
||||
for corner in dict.fromkeys(args.corners or ["bottom_left"]):
|
||||
mask = masks[corner]
|
||||
colour = args.color or sample_colour(rgb, alpha, mask, args.band)
|
||||
fill = np.empty((int(mask.sum()), 3), dtype=np.float64)
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
"minZoom": 0,
|
||||
"maxNativeZoom": 3,
|
||||
"base": true,
|
||||
"version": "461bd73a",
|
||||
"version": "851fc341",
|
||||
"trimmedVersion": null,
|
||||
"pxPerMeter": null,
|
||||
"trim": null
|
||||
|
||||
Reference in new issue
Block a user