Close the gap beside the river in the BritX ident
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 1m48s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m25s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-02 16:17:58 +00:00
co-authored by Claude Opus 5.5
parent 7fa0418940
commit d97164244a
+1 -1
View File
@@ -113,7 +113,7 @@ AMBER, STONE, NIGHT = '#E8A33D', '#1A2230', '#0B0F18'
rng = random.Random(115)
stars = ''.join(f'<circle cx="{rng.randrange(1920)}" cy="{rng.randrange(620)}" r="{rng.choice((1.5, 2, 2.5))}" fill="#DCE6F5" opacity="{rng.uniform(.3, .9):.2f}"/>' for _ in range(110))
render(exports / 'bg_sky.png', svg(1920, 1080, f'<rect width="1920" height="1080" fill="url(#s)"/>{stars}<circle cx="1120" cy="170" r="52" fill="#E8EDF5"/><circle cx="1120" cy="170" r="120" fill="url(#m)"/>',
'<linearGradient id="s" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#060A14"/><stop offset=".5" stop-color="#1C2C4A"/><stop offset=".66" stop-color="#6A4630"/></linearGradient><radialGradient id="m"><stop offset=".3" stop-color="#E8EDF5" stop-opacity=".35"/><stop offset="1" stop-color="#E8EDF5" stop-opacity="0"/></radialGradient>'))
'<linearGradient id="s" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#060A14"/><stop offset=".5" stop-color="#1C2C4A"/><stop offset=".66" stop-color="#6A4630"/><stop offset=".68" stop-color="#0B1220"/></linearGradient><radialGradient id="m"><stop offset=".3" stop-color="#E8EDF5" stop-opacity=".35"/><stop offset="1" stop-color="#E8EDF5" stop-opacity="0"/></radialGradient>'))
def windows(x, y, w, h, seed, rate=.35):
rng = random.Random(seed)
return ''.join(f'<rect x="{wx}" y="{wy}" width="8" height="12" fill="{AMBER}" opacity="{rng.uniform(.5, 1):.2f}"/>' for wy in range(y, y + h, 22) for wx in range(x, x + w, 18) if rng.random() < rate)