From 2e26c485c7034be1f8b6707d1412f976fb2d4e1a Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Sat, 22 Aug 2026 10:59:27 -0700 Subject: [PATCH] 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 --- sources/overall/overall-square.png | 4 ++-- tools/sea_corner.py | 12 ++++++------ web/data/world.json | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sources/overall/overall-square.png b/sources/overall/overall-square.png index 6589600..f0c392f 100644 --- a/sources/overall/overall-square.png +++ b/sources/overall/overall-square.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:786ea9c9f10ea23db011a003f821e2f4bd8a0ac56b43458bba700920c1f12576 -size 1760511 +oid sha256:a00814a761a6c68071defce819f9b54781d24444487a1c9a16a9b1bbc2a1e266 +size 4093562 diff --git a/tools/sea_corner.py b/tools/sea_corner.py index 17b0b5d..6941a5f 100644 --- a/tools/sea_corner.py +++ b/tools/sea_corner.py @@ -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) diff --git a/web/data/world.json b/web/data/world.json index fbf87b0..fed8578 100644 --- a/web/data/world.json +++ b/web/data/world.json @@ -29,7 +29,7 @@ "minZoom": 0, "maxNativeZoom": 3, "base": true, - "version": "461bd73a", + "version": "851fc341", "trimmedVersion": null, "pxPerMeter": null, "trim": null