Branding: key art from the game — night street with lamps; banners and menu rebuilt

The banners and the title-screen background now come from frames taken in the capital instead of a
generated illustration. A night frame is shaded only slightly under the lettering.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Fulldroper
2026-10-14 05:42:58 +03:00
co-authored by Claude Opus 5.5
parent 54b4d63d97
commit 6ec630bf47
14 changed files with 8 additions and 4 deletions
+3 -2
View File
@@ -226,10 +226,11 @@ def main() -> None:
# --- banners ----------------------------------------------------------------------------------
art = Image.open(key_art).convert('RGB')
night = np.asarray(art.resize((64, 36))).mean() < 70 # a night frame is dark enough: shade it only a little
mark = emblem if emblem else gear(32)
def banner(w: int, h: int, name: str, extra: str = '', focus_y: float = 0.5) -> None:
base = shade(cover(art, w, h, focus_y), 0.55, 0.85)
base = shade(cover(art, w, h, focus_y), *((0.80, 1.0) if night else (0.55, 0.85)))
logo = fit(wordmark(1), int(w * 0.62), int(h * 0.26))
s = logo.width // wordmark(1).width
lines = [logo, fit(motto(1), int(w * 0.62), max(8, s * 4))]
@@ -247,7 +248,7 @@ def main() -> None:
banner(1280, 320, 'wiki-cover.png', focus_y=0.55)
# --- FancyMenu: title screen background, the logo it shows, window icons -------------------------
shade(cover(art, 1920, 1080), 0.80, 0.92).convert('RGB').save(OUT / 'menu' / 'background.png')
shade(cover(art, 1920, 1080), *((0.95, 1.0) if night else (0.80, 0.92))).convert('RGB').save(OUT / 'menu' / 'background.png')
stack([wordmark(8), motto(3)], gap=12).save(OUT / 'menu' / 'logo.png')
print('done:', ', '.join(sorted(str(p.relative_to(OUT)).replace('\\', '/') for p in OUT.rglob('*.png'))))