Raise the Drive-In logo mark, and draw old drive-in, cinema front and CRT screens
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 2m1s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m39s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-02 11:45:06 +00:00
co-authored by Claude Opus 5.5
parent 8e611b5846
commit f78df58884
11 changed files with 58 additions and 16 deletions
+54 -14
View File
@@ -45,7 +45,7 @@ def orbit(x, y, size, spacing=14):
write('drive_in_marquee', 1024, 400,
'<rect width="1024" height="400" fill="#060F26"/>' +
'<rect x="44" y="50" width="936" height="300" rx="20" fill="#0B1F47"/>' + '<rect x="44" y="50" width="936" height="300" rx="20" fill="none" stroke="url(#gold)" stroke-width="4"/>' +
bulbs(70, 76, 884, 248, 34, 5.5) + mark(92, 86, .46) + orbit(366, 142, 36) + word(362, 296, 142))
bulbs(70, 76, 884, 248, 34, 5.5) + mark(92, 56, .46) + orbit(366, 142, 36) + word(362, 296, 142))
# B: the ticket Paul attached, renamed and lit.
tick = 'M16 16H1008V110A56 56 0 0 0 1008 222V316H16V222A56 56 0 0 0 16 110Z'
write('drive_in_ticket', 1024, 332,
@@ -56,24 +56,64 @@ write('drive_in_ticket', 1024, 332,
orbit(322, 102, 30, 12) + word(318, 222, 106) + text(322, 262, 'Your own big night in', 25, '#F5F1E0', 'Barlow', 'letter-spacing="2"') +
text(884, 126, 'ADMIT', 28, '#F2C14E', 'Barlow Condensed') + text(892, 182, '01', 54, '#F5F1E0', 'Barlow Condensed') + text(876, 228, 'FRONT ROW', 15, '#F2C14E', 'Barlow'))
# The screen: the feature on the big screen, tonight's bill on the marquee beside it. 960 by 540, drawn at double size.
# The screen: tonight's bill under the marquee, beside a feature shown three ways that take turns: an old drive-in screen, a cinema front and a CRT.
art = sys.argv[1] if len(sys.argv) > 1 else None
picture = f'<image x="72" y="118" width="1056" height="594" preserveAspectRatio="xMidYMid slice" xlink:href="data:image/jpeg;base64,{base64.b64encode(open(art, "rb").read()).decode()}"/>' if art else '<rect x="72" y="118" width="1056" height="594" fill="#1A2F5C"/>'
ART = base64.b64encode(open(art, 'rb').read()).decode() if art else None
def picture(x, y, w, h, title=44, clip=''):
image = f'<image x="{x}" y="{y}" width="{w}" height="{h}" preserveAspectRatio="xMidYMid slice" xlink:href="data:image/jpeg;base64,{ART}"/>' if ART else f'<rect x="{x}" y="{y}" width="{w}" height="{h}" fill="#1A2F5C"/>'
bar = title * 2.5
strip = f'<rect x="{x}" y="{y + h - bar}" width="{w}" height="{bar}" fill="#03081A" fill-opacity=".78"/>' + text(x + 28, y + h - bar + title * .85, 'TONIGHT&#39;S PRESENTATION', title * .42, '#F2C14E', 'Barlow', 'font-weight="600" letter-spacing="4"') + text(x + 28, y + h - title * .45, 'THE FEATURE TITLE', title, '#FFFFFF', 'Anton', 'letter-spacing="2"')
inner = image + strip
return f'<g clip-path="url(#{clip})">{inner}</g>' if clip else inner
rows = [('TONIGHT', 'Orbit Marquee', '21:30', True), ('FRIDAY', 'Orbit Double Bill', '20:00', False), ('SATURDAY', 'Orbit Triple Bill', '19:00', False), ('LATE', 'The Late Show', '23:00', False)]
bill = ''
for i, (day, name, at, on) in enumerate(rows):
y = 400 + i * 118
bill += f'<rect x="1214" y="{y}" width="660" height="104" rx="10" fill="{"#FFD23F" if on else "#0E2147"}" {"" if on else "stroke=\"#C98A1E\" stroke-width=\"2\""}/>'
stroke = '' if on else 'stroke="#C98A1E" stroke-width="2"'
bill += f'<rect x="1214" y="{y}" width="660" height="104" rx="10" fill="{"#FFD23F" if on else "#0E2147"}" {stroke}/>'
ink, sub = ('#071632', '#071632') if on else ('#F5F7FF', '#F2C14E')
bill += text(1242, y + 40, day, 25, sub, 'Barlow', 'font-weight="600" letter-spacing="3"') + text(1242, y + 84, name, 38, ink, 'Barlow', 'font-weight="600"') + text(1760, y + 72, at, 40, ink, 'Barlow Condensed')
stars = ''.join(f'<circle cx="{(i * 373) % 1920}" cy="{(i * 197) % 360}" r="{1 + i % 2}" fill="#FFFFFF" fill-opacity="{.25 + (i % 5) * .12:.2f}"/>' for i in range(90))
cars = ''.join(f'<path transform="translate({x},{y}) scale({s})" d="M0 60C4 40 22 36 50 34L82 8C90 2 100 0 116 0H190C206 0 218 4 228 12L256 34C290 38 312 42 318 60V82H0Z" fill="#030816"/>' for x, y, s in [(40, 912, 1), (440, 934, .9), (820, 916, 1), (1210, 936, .9), (1590, 914, 1)])
write('drive_in_screen', 1920, 1080,
'<rect width="1920" height="1080" fill="url(#night)"/>' + stars +
'<rect x="40" y="86" width="1120" height="658" rx="8" fill="#02060F"/>' + picture +
'<rect x="72" y="118" width="1056" height="594" fill="none" stroke="#F5F1E0" stroke-opacity=".5" stroke-width="2"/>' +
'<rect x="72" y="560" width="1056" height="152" fill="#03081A" fill-opacity=".8"/>' + text(100, 610, 'TONIGHT&#39;S PRESENTATION', 26, '#F2C14E', 'Barlow', 'font-weight="600" letter-spacing="5"') +
text(100, 680, 'THE FEATURE TITLE', 62, '#FFFFFF', 'Anton', 'letter-spacing="2"') + text(1100, 680, 'Tonight at 21:30', 30, '#F5F1E0', 'Barlow', 'text-anchor="end"') +
'<path d="M420 744L370 860H830L780 744Z" fill="#02060F"/>' +
'<rect x="1192" y="70" width="704" height="300" rx="14" fill="#0B1F47" stroke="url(#gold)" stroke-width="3"/>' + bulbs(1210, 88, 668, 264, 30, 4.5) + mark(1214, 112, .32) + orbit(1394, 164, 30, 11) + word(1392, 288, 104) + bill +
'<rect y="960" width="1920" height="120" fill="#030816"/>' + cars + text(40, 1048, 'OK Get your ticket', 26, '#AEBBD2', 'Barlow') + text(320, 1048, '▲▼ Choose an event', 26, '#AEBBD2', 'Barlow') + text(630, 1048, 'Back Leave the lot', 26, '#AEBBD2', 'Barlow'))
SIDE = ('<rect x="1192" y="70" width="704" height="300" rx="14" fill="#0B1F47" stroke="url(#gold)" stroke-width="3"/>' + bulbs(1210, 88, 668, 264, 30, 4.5) + mark(1214, 92, .32) + orbit(1394, 156, 28, 11) + word(1392, 300, 112) + bill)
HINTS = text(40, 1048, 'OK Get your ticket', 26, '#AEBBD2', 'Barlow') + text(320, 1048, '▲▼ Choose an event', 26, '#AEBBD2', 'Barlow') + text(630, 1048, 'Back Leave the lot', 26, '#AEBBD2', 'Barlow')
EXTRA = ('<defs><linearGradient id="wood" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#7A4C2A"/><stop offset=".5" stop-color="#5A3419"/><stop offset="1" stop-color="#3A2010"/></linearGradient>'
'<linearGradient id="foyer" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#FFE9A8"/><stop offset="1" stop-color="#E89A3C"/></linearGradient>'
'<linearGradient id="deco" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#3A1020"/><stop offset="1" stop-color="#160810"/></linearGradient>'
'<radialGradient id="lamp"><stop offset="0" stop-color="#FFB866" stop-opacity=".3"/><stop offset="1" stop-color="#FFB866" stop-opacity="0"/></radialGradient>'
'<radialGradient id="tube" cx=".5" cy=".5" r=".72"><stop offset=".62" stop-color="#000" stop-opacity="0"/><stop offset="1" stop-color="#000" stop-opacity=".62"/></radialGradient>'
'<clipPath id="crt"><path d="M160 152C340 132 680 132 860 152C884 300 884 640 860 788C680 808 340 808 160 788C136 640 136 300 160 152Z"/></clipPath></defs>')
def oldcar(x, y, s):
return f'<path transform="translate({x},{y}) scale({s})" d="M0 66C0 48 10 42 40 40L84 8C92 2 106 0 122 0H196C214 0 226 6 238 18L256 36C300 30 350 18 392 8C386 26 382 40 382 56L380 80H0Z" fill="#030816"/><circle cx="{x + 74 * s}" cy="{y + 82 * s}" r="{18 * s}" fill="#030816"/><circle cx="{x + 300 * s}" cy="{y + 82 * s}" r="{18 * s}" fill="#030816"/>'
def post(x):
return f'<path d="M{x} 960V880" stroke="#030816" stroke-width="7"/><rect x="{x - 15}" y="862" width="30" height="24" rx="4" fill="#030816"/><circle cx="{x}" cy="874" r="5" fill="#F2C14E"/>'
def drivein():
towers = ''
for x in (150, 950):
towers += f'<path d="M{x} 960V740M{x + 100} 960V740M{x} 960L{x + 100} 850L{x} 740M{x + 100} 960L{x} 850L{x + 100} 740" stroke="#1C2B4C" stroke-width="8" fill="none"/>'
seams = ''.join(f'<path d="M{x} 72V752" stroke="#A89F86" stroke-width="2"/>' for x in range(183, 1150, 139))
return ('<rect width="1920" height="1080" fill="url(#night)"/>' + stars + towers + '<rect x="44" y="72" width="1112" height="680" fill="#D9D2BC"/>' + seams +
'<path d="M44 72H1156" stroke="#F2EDDC" stroke-width="5"/><path d="M44 752H1156" stroke="#8F876F" stroke-width="7"/>' + picture(84, 104, 1032, 580) +
text(600, 730, 'ORBIT DRIVE-IN THEATRE', 34, '#0B1F47', 'Barlow Condensed', 'text-anchor="middle" letter-spacing="8"') +
'<rect y="960" width="1920" height="120" fill="#030816"/>' + oldcar(40, 860, 1) + post(490) + oldcar(560, 866, .96) + post(990) + SIDE + HINTS)
def cinema():
doors = ''.join(f'<rect x="{x}" y="716" width="150" height="244" fill="url(#foyer)"/><rect x="{x}" y="716" width="150" height="244" fill="none" stroke="#C98A1E" stroke-width="6"/><path d="M{x + 75} 716V960" stroke="#C98A1E" stroke-width="4"/><circle cx="{x + 65}" cy="850" r="5" fill="#7A4C2A"/><circle cx="{x + 85}" cy="850" r="5" fill="#7A4C2A"/>' for x in (110, 280, 770, 940))
canopy = '<path d="M50 520H1150L1178 690H22Z" fill="#0B1F47" stroke="url(#gold)" stroke-width="4"/>'
canopy += ''.join(bulb(70 + i * 1060 / 26, 532, 5) for i in range(27)) + ''.join(bulb(46 + i * 1108 / 28, 674, 5) for i in range(29))
canopy += '<rect x="170" y="552" width="860" height="104" fill="#F5F1E0"/>' + text(600, 586, 'NOW SHOWING', 26, '#7A1E2C', 'Barlow', 'font-weight="600" text-anchor="middle" letter-spacing="8"') + text(600, 644, 'THE FEATURE TITLE', 52, '#0B1626', 'Anton', 'text-anchor="middle" letter-spacing="3"')
booth = '<rect x="470" y="730" width="260" height="230" rx="10" fill="#2A0E16" stroke="url(#gold)" stroke-width="5"/><path d="M500 760H700V850H500Z" fill="url(#foyer)"/><path d="M490 866H710" stroke="#F2C14E" stroke-width="6"/>' + text(600, 916, 'TICKETS', 34, '#F2C14E', 'Barlow Condensed', 'text-anchor="middle" letter-spacing="5"')
pil = ''.join(f'<path d="M{x} 30V520" stroke="#C98A1E" stroke-width="5"/>' for x in (70, 96, 122, 1078, 1104, 1130))
return ('<rect width="1920" height="1080" fill="url(#night)"/>' + stars + '<rect x="24" y="24" width="1152" height="936" fill="url(#deco)"/>' + pil +
'<rect x="196" y="48" width="808" height="456" fill="#0B1F47" stroke="url(#gold)" stroke-width="4"/>' + bulbs(210, 62, 780, 428, 40, 4.5) + picture(240, 92, 720, 368, 26) +
doors + booth + canopy + '<rect y="960" width="1920" height="120" fill="#100509"/><path d="M500 960H700L780 1080H420Z" fill="#7A1E2C"/>' + SIDE + HINTS)
def crt():
grille = ''.join(f'<path d="M944 {y}H1094" stroke="#1A0F08" stroke-width="5"/>' for y in range(520, 770, 18))
lines = ''.join(f'<path d="M136 {y}H884" stroke="#000" stroke-opacity=".16" stroke-width="2"/>' for y in range(136, 806, 6))
grain = ''.join(f'<path d="M64 {y}C340 {y + 10} 800 {y - 10} 1136 {y + 4}" stroke="#2E1A0C" stroke-opacity=".4" stroke-width="2" fill="none"/>' for y in range(112, 868, 42))
dial = lambda y: f'<circle cx="1018" cy="{y}" r="50" fill="#C9CDD4"/><circle cx="1018" cy="{y}" r="36" fill="#23262C"/><path d="M1018 {y}L1042 {y - 24}" stroke="#F5F1E0" stroke-width="6" stroke-linecap="round"/>'
return ('<rect width="1920" height="1080" fill="#0A1228"/><circle cx="600" cy="480" r="760" fill="url(#lamp)"/>' +
'<rect x="60" y="90" width="1080" height="780" rx="38" fill="url(#wood)"/>' + grain + '<rect x="108" y="124" width="804" height="692" rx="52" fill="#0A0806"/>' +
picture(136, 136, 748, 668, 42, 'crt') + f'<g clip-path="url(#crt)">{lines}<rect x="136" y="136" width="748" height="668" fill="url(#tube)"/><path d="M190 180C330 164 480 164 610 176C470 200 310 240 190 300Z" fill="#FFFFFF" fill-opacity=".07"/></g>' +
'<rect x="928" y="124" width="182" height="692" rx="10" fill="#3A2010"/>' + dial(218) + dial(366) + grille + text(1019, 796, 'ORBIT', 26, '#F5F1E0', 'Barlow', 'font-weight="600" text-anchor="middle" letter-spacing="5"') +
'<path d="M160 870V920M1040 870V920" stroke="#1A0F08" stroke-width="22"/><rect y="920" width="1920" height="160" fill="#1A0F08"/><path d="M0 920H1920" stroke="#3A2010" stroke-width="5"/>' + SIDE + HINTS)
for name, draw in (('drive_in_screen_lot', drivein), ('drive_in_screen_cinema', cinema), ('drive_in_screen_crt', crt)):
write(name, 1920, 1080, EXTRA + draw())
Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB