diff --git a/design/drive-in/build-drive-in.py b/design/drive-in/build-drive-in.py index 2ef81848..642340e0 100644 --- a/design/drive-in/build-drive-in.py +++ b/design/drive-in/build-drive-in.py @@ -45,7 +45,7 @@ def orbit(x, y, size, spacing=14): 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)) + 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'' if art else '' +ART = base64.b64encode(open(art, 'rb').read()).decode() if art else None +def picture(x, y, w, h, title=44, clip=''): + image = f'' if ART else f'' + bar = title * 2.5 + strip = f'' + text(x + 28, y + h - bar + title * .85, 'TONIGHT'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'{inner}' 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'' + stroke = '' if on else 'stroke="#C98A1E" stroke-width="2"' + 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')) +SIDE = ('' + 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 = ('' + '' + '' + '' + '' + '') +def oldcar(x, y, s): + return f'' +def post(x): + return f'' +def drivein(): + towers = '' + for x in (150, 950): + towers += f'' + seams = ''.join(f'' for x in range(183, 1150, 139)) + return ('' + stars + towers + '' + seams + + '' + picture(84, 104, 1032, 580) + + text(600, 730, 'ORBIT DRIVE-IN THEATRE', 34, '#0B1F47', 'Barlow Condensed', 'text-anchor="middle" letter-spacing="8"') + + '' + oldcar(40, 860, 1) + post(490) + oldcar(560, 866, .96) + post(990) + SIDE + HINTS) +def cinema(): + doors = ''.join(f'' for x in (110, 280, 770, 940)) + canopy = '' + 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 += '' + 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 = '' + text(600, 916, 'TICKETS', 34, '#F2C14E', 'Barlow Condensed', 'text-anchor="middle" letter-spacing="5"') + pil = ''.join(f'' for x in (70, 96, 122, 1078, 1104, 1130)) + return ('' + stars + '' + pil + + '' + bulbs(210, 62, 780, 428, 40, 4.5) + picture(240, 92, 720, 368, 26) + + doors + booth + canopy + '' + SIDE + HINTS) +def crt(): + grille = ''.join(f'' for y in range(520, 770, 18)) + lines = ''.join(f'' for y in range(136, 806, 6)) + grain = ''.join(f'' for y in range(112, 868, 42)) + dial = lambda y: f'' + return ('' + + '' + grain + '' + + picture(136, 136, 748, 668, 42, 'crt') + f'{lines}' + + '' + dial(218) + dial(366) + grille + text(1019, 796, 'ORBIT', 26, '#F5F1E0', 'Barlow', 'font-weight="600" text-anchor="middle" letter-spacing="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()) diff --git a/design/drive-in/drive_in_marquee.png b/design/drive-in/drive_in_marquee.png index 5895bf03..439faded 100644 Binary files a/design/drive-in/drive_in_marquee.png 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 index dc276876..446c9bdf 100644 --- a/design/drive-in/drive_in_marquee.svg +++ b/design/drive-in/drive_in_marquee.svg @@ -1 +1 @@ -ORBITDRIVE-IN \ No newline at end of file +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 deleted file mode 100644 index 732d0ec0..00000000 Binary files a/design/drive-in/drive_in_screen.png and /dev/null differ diff --git a/design/drive-in/drive_in_screen.svg b/design/drive-in/drive_in_screen.svg deleted file mode 100644 index e3e23a29..00000000 --- a/design/drive-in/drive_in_screen.svg +++ /dev/null @@ -1 +0,0 @@ -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_screen_cinema.png b/design/drive-in/drive_in_screen_cinema.png new file mode 100644 index 00000000..072ddb7a Binary files /dev/null and b/design/drive-in/drive_in_screen_cinema.png differ diff --git a/design/drive-in/drive_in_screen_cinema.svg b/design/drive-in/drive_in_screen_cinema.svg new file mode 100644 index 00000000..457d31a6 --- /dev/null +++ b/design/drive-in/drive_in_screen_cinema.svg @@ -0,0 +1 @@ +TONIGHT'S PRESENTATIONTHE FEATURE TITLETICKETSNOW SHOWINGTHE FEATURE TITLEORBITDRIVE-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_screen_crt.png b/design/drive-in/drive_in_screen_crt.png new file mode 100644 index 00000000..cc432aaa Binary files /dev/null and b/design/drive-in/drive_in_screen_crt.png differ diff --git a/design/drive-in/drive_in_screen_crt.svg b/design/drive-in/drive_in_screen_crt.svg new file mode 100644 index 00000000..b7d82a98 --- /dev/null +++ b/design/drive-in/drive_in_screen_crt.svg @@ -0,0 +1 @@ +TONIGHT'S PRESENTATIONTHE FEATURE TITLEORBITORBITDRIVE-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_screen_lot.png b/design/drive-in/drive_in_screen_lot.png new file mode 100644 index 00000000..1dd5eff5 Binary files /dev/null and b/design/drive-in/drive_in_screen_lot.png differ diff --git a/design/drive-in/drive_in_screen_lot.svg b/design/drive-in/drive_in_screen_lot.svg new file mode 100644 index 00000000..fc75cd08 --- /dev/null +++ b/design/drive-in/drive_in_screen_lot.svg @@ -0,0 +1 @@ +TONIGHT'S PRESENTATIONTHE FEATURE TITLEORBIT DRIVE-IN THEATREORBITDRIVE-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