Draw Orbit Drive-In logos and screen concept for review
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Orbit Drive-In: a marquee logo, a ticket logo and a screen concept. The old OrbOffice artwork in design/ stays as it was.
|
||||
Original artwork in the spirit of event cinema: marquee bulbs, searchlights, gold and midnight navy. Pass an image to fill the screen."""
|
||||
import base64, math, subprocess, sys
|
||||
from pathlib import Path
|
||||
HERE = Path(__file__).parent
|
||||
GOLD = '<linearGradient id="gold" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#FFF0B8"/><stop offset=".45" stop-color="#F2C14E"/><stop offset=".55" stop-color="#C98A1E"/><stop offset="1" stop-color="#F7D678"/></linearGradient>'
|
||||
SILVER = '<linearGradient id="silver" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#FFFFFF"/><stop offset=".44" stop-color="#E8EDF5"/><stop offset=".5" stop-color="#B7CBE8"/><stop offset="1" stop-color="#F5F7FF"/></linearGradient>'
|
||||
GLOW = '<radialGradient id="bulb"><stop offset="0" stop-color="#FFFBE6"/><stop offset=".45" stop-color="#FFD76A"/><stop offset="1" stop-color="#FFB52E" stop-opacity="0"/></radialGradient>'
|
||||
NIGHT = '<linearGradient id="night" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#050E24"/><stop offset=".62" stop-color="#0E2A5C"/><stop offset="1" stop-color="#3A2A58"/></linearGradient>'
|
||||
BEAM = '<linearGradient id="beam" x1="0" y1="1" x2="0" y2="0"><stop offset="0" stop-color="#CFE3FF" stop-opacity=".34"/><stop offset="1" stop-color="#CFE3FF" stop-opacity="0"/></linearGradient>'
|
||||
DEFS = f'<defs>{GOLD}{SILVER}{GLOW}{NIGHT}{BEAM}</defs>'
|
||||
CRESCENT = 'M335 132C141 114 66 384 257 475C143 363 185 207 335 132Z'
|
||||
RING = 'M129 369C102 399 111 425 161 428C267 432 431 340 445 289C455 250 405 250 369 261'
|
||||
def mark(x, y, s, ring='#F2C14E'):
|
||||
return f'<g transform="translate({x},{y}) scale({s})"><path d="{CRESCENT}" fill="url(#silver)"/><path d="{RING}" fill="none" stroke="{ring}" stroke-width="13"/><circle cx="430" cy="282" r="10" fill="{ring}"/></g>'
|
||||
def text(x, y, v, size, fill, family='Anton', extra=''):
|
||||
return f'<text x="{x}" y="{y}" font-family="{family}" font-size="{size}" fill="{fill}" {extra}>{v}</text>'
|
||||
def bulb(x, y, r=6):
|
||||
return f'<circle cx="{x:.1f}" cy="{y:.1f}" r="{r*2.1:.1f}" fill="url(#bulb)"/><circle cx="{x:.1f}" cy="{y:.1f}" r="{r*.62:.1f}" fill="#FFFBE6"/>'
|
||||
def bulbs(x, y, w, h, step, r=6):
|
||||
out, nx, ny = '', round(w / step), round(h / step)
|
||||
for i in range(nx + 1):
|
||||
out += bulb(x + w * i / nx, y, r) + bulb(x + w * i / nx, y + h, r)
|
||||
for j in range(1, ny):
|
||||
out += bulb(x, y + h * j / ny, r) + bulb(x + w, y + h * j / ny, r)
|
||||
return out
|
||||
def beams(cx, cy, angles, length, spread=4.5):
|
||||
out = ''
|
||||
for a in angles:
|
||||
l, r = math.radians(a - spread), math.radians(a + spread)
|
||||
out += f'<path d="M{cx} {cy}L{cx + length * math.sin(l):.0f} {cy - length * math.cos(l):.0f}L{cx + length * math.sin(r):.0f} {cy - length * math.cos(r):.0f}Z" fill="#CFE3FF" fill-opacity=".13"/>'
|
||||
return out
|
||||
def write(name, w, h, body):
|
||||
src = HERE / f'{name}.svg'
|
||||
src.write_text(f'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{w}" height="{h}" viewBox="0 0 {w} {h}">{DEFS}{body}</svg>')
|
||||
subprocess.run(['vectorcraft-cli', 'convert', str(src), str(HERE / f'{name}.png')], check=True, stdout=subprocess.DEVNULL)
|
||||
|
||||
def word(x, y, size):
|
||||
return text(x, y, 'DRIVE-IN', size, 'url(#gold)', 'Anton', 'letter-spacing="3"')
|
||||
def orbit(x, y, size, spacing=14):
|
||||
return text(x, y, 'ORBIT', size, '#F5F7FF', 'Barlow', f'font-weight="600" letter-spacing="{spacing}"')
|
||||
|
||||
# A: the marquee, a lit sign on black.
|
||||
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))
|
||||
# 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,
|
||||
'<rect width="1024" height="332" fill="#060F26"/>' + f'<path d="{tick}" fill="#0E2147" stroke="url(#gold)" stroke-width="6"/>' +
|
||||
'<path d="M70 44H950M70 288H950" stroke="#C98A1E" stroke-width="2"/>' + '<path d="M836 44V288" stroke="#C98A1E" stroke-width="2.5" stroke-dasharray="9 8"/>' +
|
||||
'<rect x="98" y="66" width="188" height="200" rx="14" fill="#07142F" stroke="url(#gold)" stroke-width="4"/>' + '<rect x="112" y="78" width="160" height="128" rx="10" fill="#0B1F47" stroke="#C98A1E" stroke-width="2.5"/>' + mark(108, 44, .3) +
|
||||
'<path d="M122 226H210M122 238H190" stroke="#8FA3C4" stroke-width="2.5"/><circle cx="256" cy="232" r="8" fill="none" stroke="#F5F7FF" stroke-width="2.5"/>' +
|
||||
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.
|
||||
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"/>'
|
||||
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\""}/>'
|
||||
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'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'))
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 9.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 93 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1024" height="332" viewBox="0 0 1024 332"><defs><linearGradient id="gold" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#FFF0B8"/><stop offset=".45" stop-color="#F2C14E"/><stop offset=".55" stop-color="#C98A1E"/><stop offset="1" stop-color="#F7D678"/></linearGradient><linearGradient id="silver" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#FFFFFF"/><stop offset=".44" stop-color="#E8EDF5"/><stop offset=".5" stop-color="#B7CBE8"/><stop offset="1" stop-color="#F5F7FF"/></linearGradient><radialGradient id="bulb"><stop offset="0" stop-color="#FFFBE6"/><stop offset=".45" stop-color="#FFD76A"/><stop offset="1" stop-color="#FFB52E" stop-opacity="0"/></radialGradient><linearGradient id="night" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#050E24"/><stop offset=".62" stop-color="#0E2A5C"/><stop offset="1" stop-color="#3A2A58"/></linearGradient><linearGradient id="beam" x1="0" y1="1" x2="0" y2="0"><stop offset="0" stop-color="#CFE3FF" stop-opacity=".34"/><stop offset="1" stop-color="#CFE3FF" stop-opacity="0"/></linearGradient></defs><rect width="1024" height="332" fill="#060F26"/><path d="M16 16H1008V110A56 56 0 0 0 1008 222V316H16V222A56 56 0 0 0 16 110Z" fill="#0E2147" stroke="url(#gold)" stroke-width="6"/><path d="M70 44H950M70 288H950" stroke="#C98A1E" stroke-width="2"/><path d="M836 44V288" stroke="#C98A1E" stroke-width="2.5" stroke-dasharray="9 8"/><rect x="98" y="66" width="188" height="200" rx="14" fill="#07142F" stroke="url(#gold)" stroke-width="4"/><rect x="112" y="78" width="160" height="128" rx="10" fill="#0B1F47" stroke="#C98A1E" stroke-width="2.5"/><g transform="translate(108,44) scale(0.3)"><path d="M335 132C141 114 66 384 257 475C143 363 185 207 335 132Z" fill="url(#silver)"/><path d="M129 369C102 399 111 425 161 428C267 432 431 340 445 289C455 250 405 250 369 261" fill="none" stroke="#F2C14E" stroke-width="13"/><circle cx="430" cy="282" r="10" fill="#F2C14E"/></g><path d="M122 226H210M122 238H190" stroke="#8FA3C4" stroke-width="2.5"/><circle cx="256" cy="232" r="8" fill="none" stroke="#F5F7FF" stroke-width="2.5"/><text x="322" y="102" font-family="Barlow" font-size="30" fill="#F5F7FF" font-weight="600" letter-spacing="12">ORBIT</text><text x="318" y="222" font-family="Anton" font-size="106" fill="url(#gold)" letter-spacing="3">DRIVE-IN</text><text x="322" y="262" font-family="Barlow" font-size="25" fill="#F5F1E0" letter-spacing="2">Your own big night in</text><text x="884" y="126" font-family="Barlow Condensed" font-size="28" fill="#F2C14E" >ADMIT</text><text x="892" y="182" font-family="Barlow Condensed" font-size="54" fill="#F5F1E0" >01</text><text x="876" y="228" font-family="Barlow" font-size="15" fill="#F2C14E" >FRONT ROW</text></svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
Reference in New Issue
Block a user