diff --git a/design/drive-in/build-drive-in.py b/design/drive-in/build-drive-in.py new file mode 100644 index 00000000..2ef81848 --- /dev/null +++ b/design/drive-in/build-drive-in.py @@ -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 = '' +SILVER = '' +GLOW = '' +NIGHT = '' +BEAM = '' +DEFS = f'{GOLD}{SILVER}{GLOW}{NIGHT}{BEAM}' +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'' +def text(x, y, v, size, fill, family='Anton', extra=''): + return f'{v}' +def bulb(x, y, r=6): + return f'' +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'' + return out +def write(name, w, h, body): + src = HERE / f'{name}.svg' + src.write_text(f'{DEFS}{body}') + 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, + '' + + '' + '' + + 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, + '' + f'' + + '' + '' + + '' + '' + mark(108, 44, .3) + + '' + + 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'' if art else '' +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'' + 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'' for i in range(90)) +cars = ''.join(f'' 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, + '' + stars + + '' + picture + + '' + + '' + 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"') + + '' + + '' + bulbs(1210, 88, 668, 264, 30, 4.5) + mark(1214, 112, .32) + orbit(1394, 164, 30, 11) + word(1392, 288, 104) + bill + + '' + 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')) diff --git a/design/drive-in/drive_in_marquee.png b/design/drive-in/drive_in_marquee.png new file mode 100644 index 00000000..5895bf03 Binary files /dev/null and b/design/drive-in/drive_in_marquee.png differ diff --git a/design/drive-in/drive_in_marquee.svg b/design/drive-in/drive_in_marquee.svg new file mode 100644 index 00000000..dc276876 --- /dev/null +++ b/design/drive-in/drive_in_marquee.svg @@ -0,0 +1 @@ +ORBITDRIVE-IN \ No newline at end of file diff --git a/design/drive-in/drive_in_screen.png b/design/drive-in/drive_in_screen.png new file mode 100644 index 00000000..732d0ec0 Binary files /dev/null and b/design/drive-in/drive_in_screen.png differ diff --git a/design/drive-in/drive_in_screen.svg b/design/drive-in/drive_in_screen.svg new file mode 100644 index 00000000..e3e23a29 --- /dev/null +++ b/design/drive-in/drive_in_screen.svg @@ -0,0 +1 @@ +TONIGHT'S PRESENTATIONTHE FEATURE TITLETonight at 21:30ORBITDRIVE-INTONIGHTOrbit Marquee21:30FRIDAYOrbit Double Bill20:00SATURDAYOrbit Triple Bill19:00LATEThe Late Show23:00OK Get your ticket▲▼ Choose an eventBack Leave the lot \ No newline at end of file diff --git a/design/drive-in/drive_in_ticket.png b/design/drive-in/drive_in_ticket.png new file mode 100644 index 00000000..a016a765 Binary files /dev/null and b/design/drive-in/drive_in_ticket.png differ diff --git a/design/drive-in/drive_in_ticket.svg b/design/drive-in/drive_in_ticket.svg new file mode 100644 index 00000000..30a61f8b --- /dev/null +++ b/design/drive-in/drive_in_ticket.svg @@ -0,0 +1 @@ +ORBITDRIVE-INYour own big night inADMIT01FRONT ROW \ No newline at end of file