What's On, Drive-In and Arcade design proposal: editable FigCraft frames, Figma .fig exports and renders (design only, mock data)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# What's On, Drive-In and Arcade: design proposal (4 November 2026)
|
||||
|
||||
Design only. No app code changes. Every programme, time and date is mock data for layout, labelled MOCK DATA on each frame.
|
||||
|
||||
- `build-whats-on.py` writes the six 1920×1080 SVG frames from Orbit's own tokens, logos and artwork. The SVGs aren't kept in git (they embed images): run the script to remake them.
|
||||
- Each frame was converted with `figcraft-cli convert <frame>.svg <frame>.figcraft`. Each `.figcraft` file has editable layers: frames, text, shapes, images, and named groups such as "Featured card", "Live Now panel" and "Focus ring".
|
||||
- Figma: `<frame>.fig`, from `figcraft-cli convert <frame>.figcraft <frame>.fig`. Open it in Figma, or open the `.figcraft` file in FigCraft.
|
||||
- Renders: `<frame>.png`, from `figcraft-cli render`.
|
||||
|
||||
Frames:
|
||||
- whats-on-highlights;
|
||||
- whats-on-tonight;
|
||||
- whats-on-premieres;
|
||||
- whats-on-details;
|
||||
- drive-in-redesign;
|
||||
- arcade-redesign.
|
||||
|
||||
The full set of boards (states, components, navigation map, wireframe) is on the design canvas: https://claude.ai/artifact/32XAvcT4JHMi1ixChQy1cC
|
||||
|
||||
The spec is https://claude.ai/artifact/BBUQyr3BUAva8uhaFodKU1
|
||||
|
||||
Fonts: Barlow, Barlow Condensed and Anton, from design/fonts and the app's res/font.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 389 KiB |
@@ -0,0 +1,372 @@
|
||||
"""What's On, Drive-In and Arcade design proposal (4 November 2026): editable 1920x1080 SVGs for FigCraft.
|
||||
|
||||
Design only, nothing here is used by the app. Every programme, time and date is MOCK DATA for layout and is labelled so.
|
||||
Run: python3 design/whats-on/build-whats-on.py, then design/whats-on/convert.sh for .figcraft, .fig and .png.
|
||||
"""
|
||||
import base64, io
|
||||
from html import escape
|
||||
from pathlib import Path
|
||||
from PIL import Image
|
||||
|
||||
HERE = Path(__file__).parent
|
||||
ROOT = HERE.parent.parent
|
||||
RES = ROOT / "android/app/src/main/res/drawable-nodpi"
|
||||
|
||||
NAVY, DEEP, PANEL, BLUE, GOLD, MUTED, WHITE = "#071632", "#0C2148", "#12356B", "#194C91", "#FFDE59", "#B7CBE8", "#FFFFFF"
|
||||
SKY, MINT, PINK, LIVE, MOCK = "#7FD1FF", "#7EE0A8", "#FFB3D1", "#FF5A5A", "#FF9F43"
|
||||
BODY, COND, HEAD = "Barlow", "Barlow Condensed", "Anton"
|
||||
|
||||
|
||||
def data_uri(path, max_w=None):
|
||||
im = Image.open(path).convert("RGBA")
|
||||
if max_w and im.width > max_w:
|
||||
im = im.resize((max_w, round(im.height * max_w / im.width)))
|
||||
buf = io.BytesIO()
|
||||
im.save(buf, "PNG", optimize=True)
|
||||
return "data:image/png;base64," + base64.b64encode(buf.getvalue()).decode()
|
||||
|
||||
|
||||
LOGO = {name: data_uri(RES / f"{file}.webp") for name, file in {
|
||||
"orbit": "orbit_logo", "vortex": "vortex_epg", "paradox": "paradox_epg", "afterdark": "orbit_after_dark_epg", "three": "orbit_three_epg",
|
||||
"drivein": "orbit_drive_in_epg", "riot": "orbit_riot_epg", "ringx": "orbit_ring_x_epg", "premiere": "orbit_premiere_epg", "terra": "orbit_terra_epg"}.items()}
|
||||
TICKET = data_uri(RES / "orbit_drive_in_ticket.webp")
|
||||
LOT = data_uri(RES / "drive_in_lot.webp", 1920)
|
||||
ARCADE_LOGO = data_uri(ROOT / "design/arcade/arcade_logo.png", 512)
|
||||
BEDLAM = data_uri(ROOT / "design/arcade/arcade_bedlam.png", 1280)
|
||||
|
||||
|
||||
class Screen:
|
||||
def __init__(self, name, title):
|
||||
self.name, self.title = name, title
|
||||
self.parts = [f'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1920" height="1080" viewBox="0 0 1920 1080">',
|
||||
f'<title>{escape(title)}</title>']
|
||||
self.rect(0, 0, 1920, 1080, NAVY, id="Background")
|
||||
|
||||
def group(self, id):
|
||||
self.parts.append(f'<g id="{escape(id)}">')
|
||||
|
||||
def end(self):
|
||||
self.parts.append("</g>")
|
||||
|
||||
def rect(self, x, y, w, h, fill, rx=0, stroke=None, sw=2, id=None, opacity=None, dash=None):
|
||||
a = f' id="{escape(id)}"' if id else ""
|
||||
a += f' stroke="{stroke}" stroke-width="{sw}"' if stroke else ""
|
||||
a += f' stroke-dasharray="{dash}"' if dash else ""
|
||||
a += f' opacity="{opacity}"' if opacity is not None else ""
|
||||
self.parts.append(f'<rect{a} x="{x}" y="{y}" width="{w}" height="{h}" rx="{rx}" fill="{fill}"/>')
|
||||
|
||||
def text(self, x, y, s, size=21, fill=WHITE, family=BODY, weight=400, anchor="start", id=None, spacing=0):
|
||||
a = f' id="{escape(id)}"' if id else ""
|
||||
a += f' letter-spacing="{spacing}"' if spacing else ""
|
||||
self.parts.append(f'<text{a} x="{x}" y="{y}" font-family="{family}" font-size="{size}" font-weight="{weight}" fill="{fill}" text-anchor="{anchor}">{escape(s)}</text>')
|
||||
|
||||
def img(self, x, y, w, h, uri, id=None, fit="xMidYMid meet"):
|
||||
a = f' id="{escape(id)}"' if id else ""
|
||||
self.parts.append(f'<image{a} x="{x}" y="{y}" width="{w}" height="{h}" preserveAspectRatio="{fit}" href="{uri}" xlink:href="{uri}"/>')
|
||||
|
||||
def tag(self, x, y, s, fill, size=16):
|
||||
w = int(len(s) * size * 0.62) + 20
|
||||
self.rect(x, y, w, size + 12, fill, rx=4)
|
||||
self.text(x + 10, y + size + 3, s, size, NAVY, BODY, 600, spacing=0.5)
|
||||
return w
|
||||
|
||||
def focus(self, x, y, w, h, rx=10):
|
||||
"""The focused state: a 4 px gold ring 3 px outside the card (the lift and shadow are motion, noted in the spec)."""
|
||||
self.rect(x - 5, y - 5, w + 10, h + 10, "none", rx=rx + 5, stroke=GOLD, sw=4, id="Focus ring")
|
||||
|
||||
def mock(self, x=1824, y=None):
|
||||
y = y if y is not None else 54
|
||||
self.rect(x - 130, y, 130, 30, MOCK, rx=4, id="Mock data label")
|
||||
self.text(x - 65, y + 22, "MOCK DATA", 17, NAVY, BODY, 600, "middle")
|
||||
|
||||
def masthead(self, active):
|
||||
self.group("Masthead")
|
||||
self.img(96, 60, 208, 52, LOGO["orbit"], "Orbit logo")
|
||||
x = 344
|
||||
for tab in ["Home", "What's On", "TV Guide", "Drive-In", "Arcade"]:
|
||||
w = int(len(tab) * 14.5) + 44
|
||||
if tab == active:
|
||||
self.rect(x, 64, w, 46, GOLD, rx=6)
|
||||
self.text(x + w / 2, 96, tab, 26, NAVY if tab == active else MUTED, BODY, 600, "middle")
|
||||
x += w + 8
|
||||
self.text(1824, 92, "16:42", 40, WHITE, COND, 500, "end")
|
||||
self.text(1824, 116, "Saturday 14 November", 20, MUTED, BODY, 400, "end")
|
||||
self.end()
|
||||
|
||||
def strip(self, current, y=134):
|
||||
self.group("Section strip")
|
||||
self.rect(96, y, 1728, 3, GOLD)
|
||||
self.rect(96, y + 54, 1728, 1, BLUE)
|
||||
self.text(96, y + 40, "WHAT'S ON", 30, GOLD, HEAD, 400, spacing=1)
|
||||
x = 300
|
||||
for s in ["Highlights", "Tonight on Orbit", "Premieres & Specials", "At the Drive-In"]:
|
||||
on = s == current
|
||||
self.text(x, y + 38, s, 24, WHITE if on else MUTED, BODY, 600)
|
||||
w = int(len(s) * 12.2)
|
||||
if on:
|
||||
self.rect(x, y + 45, w, 3, GOLD)
|
||||
x += w + 40
|
||||
self.end()
|
||||
|
||||
def hints(self, items, note=""):
|
||||
self.group("Remote hints")
|
||||
self.rect(96, 1006, 1728, 1, BLUE)
|
||||
x = 96
|
||||
for key, label in items:
|
||||
self.text(x, 1036, key, 19, GOLD, BODY, 600)
|
||||
kx = x + int(len(key) * 13) + 12
|
||||
self.text(kx, 1036, label, 19, MUTED)
|
||||
x = kx + int(len(label) * 9.6) + 36
|
||||
if note:
|
||||
self.text(1824, 1036, note, 19, MUTED, anchor="end")
|
||||
self.end()
|
||||
|
||||
def save(self):
|
||||
self.parts.append("</svg>")
|
||||
(HERE / f"{self.name}.svg").write_text("\n".join(self.parts))
|
||||
|
||||
|
||||
def highlights():
|
||||
s = Screen("whats-on-highlights", "What's On: Highlights")
|
||||
s.masthead("What's On"); s.strip("Highlights"); s.mock(y=150)
|
||||
# Featured
|
||||
s.group("Featured card")
|
||||
s.rect(96, 212, 1120, 440, PANEL, rx=12)
|
||||
s.rect(96, 212, 560, 440, "#0E2B58", rx=12, id="Artwork (Emby backdrop)")
|
||||
s.text(376, 440, "Emby artwork (backdrop)", 20, MUTED, anchor="middle")
|
||||
s.tag(118, 234, "TONIGHT'S PICK", GOLD, 20)
|
||||
s.img(688, 240, 192, 60, LOGO["afterdark"], "Channel badge L")
|
||||
s.text(688, 344, "Tonight 21:00", 30, GOLD, COND, 500)
|
||||
s.text(688, 404, "Joe Bob Saturday", 48, WHITE, HEAD)
|
||||
s.text(688, 446, "Tourist Trap (1979)", 26, WHITE, BODY, 600)
|
||||
s.text(688, 490, "The drive-in host introduces a cult", 22, MUTED)
|
||||
s.text(688, 520, "mannequin chiller. Weekly event.", 22, MUTED)
|
||||
s.tag(688, 606, "WEEKLY EVENT", GOLD, 18)
|
||||
s.focus(96, 212, 1120, 440, 12)
|
||||
s.end()
|
||||
# Tonight row
|
||||
s.group("Tonight on Orbit row")
|
||||
s.text(96, 706, "TONIGHT ON ORBIT", 30, WHITE, HEAD)
|
||||
s.text(392, 704, "See the whole evening", 20, GOLD, BODY, 600)
|
||||
for i, (t, logo, title, sub) in enumerate([("19:30", "riot", "Futurama", "S2 E4 · next in turn"), ("20:00", "drivein", "Back to the Future", "Orbit Marquee · 116 min"),
|
||||
("21:00", "three", "Scottish Comedy Night", "Still Game, then Limmy's"), ("22:00", "paradox", "The X-Files", "Story · part 1 of 2")]):
|
||||
x = 96 + i * 284
|
||||
s.group(f"Tonight tile {i + 1}")
|
||||
s.rect(x, 728, 268, 236, PANEL, rx=10)
|
||||
s.text(x + 18, 778, t, 40, GOLD, COND, 500)
|
||||
s.img(x + 18, 794, 128, 40, LOGO[logo], "Channel badge M")
|
||||
s.text(x + 18, 872, title, 23, WHITE, BODY, 600)
|
||||
s.text(x + 18, 904, sub, 18, MUTED)
|
||||
s.end()
|
||||
s.end()
|
||||
# Live now
|
||||
s.group("Live Now panel")
|
||||
s.rect(1248, 212, 576, 420, DEEP, rx=10)
|
||||
s.parts.append(f'<circle cx="1279" cy="248" r="7" fill="{LIVE}"/>')
|
||||
s.text(1294, 258, "LIVE NOW", 28, WHITE, HEAD)
|
||||
for i, (logo, title, times, pct) in enumerate([("vortex", "Batman Beyond · Spellbound", "16:37 to 16:59", .22), ("paradox", "Star Trek: The Next Generation", "16:05 to 16:50", .82),
|
||||
("terra", "Planet Earth II · Islands", "16:20 to 17:15", .40), ("ringx", "WWF Superstars", "16:30 to 17:20", .24)]):
|
||||
y = 284 + i * 86
|
||||
s.group(f"Live row {i + 1}")
|
||||
s.img(1268, y + 12, 112, 35, LOGO[logo], "Channel badge S")
|
||||
s.text(1396, y + 24, title, 21, WHITE, BODY, 600)
|
||||
s.rect(1396, y + 38, 400, 6, BLUE, rx=3)
|
||||
s.rect(1396, y + 38, int(400 * pct), 6, GOLD, rx=3, id="Progress")
|
||||
s.text(1396, y + 68, times, 17, MUTED)
|
||||
s.end()
|
||||
s.end()
|
||||
s.group("Premieres & Specials")
|
||||
s.text(1248, 686, "PREMIERES & SPECIALS", 28, WHITE, HEAD)
|
||||
for i, (tag, colour, title, when) in enumerate([("PPV SUNDAY", GOLD, "WrestleMania III", "Ring X · Sunday 19:08"), ("FIRST ON ORBIT", SKY, "A new-arrival film", "Premiere · Friday 20:00")]):
|
||||
y = 708 + i * 130
|
||||
s.rect(1248, y, 576, 118, PANEL, rx=10)
|
||||
s.tag(1268, y + 14, tag, colour)
|
||||
s.text(1268, y + 76, title, 23, WHITE, BODY, 600)
|
||||
s.text(1268, y + 102, when, 18, MUTED)
|
||||
s.end()
|
||||
s.hints([("OK", "Watch live or details"), ("◀ ▶ ▲ ▼", "Move"), ("Back", "Home")], "Every listing is a confirmed booking")
|
||||
s.save()
|
||||
|
||||
|
||||
def tonight():
|
||||
s = Screen("whats-on-tonight", "Tonight on Orbit")
|
||||
s.masthead("What's On"); s.strip("Tonight on Orbit"); s.mock(y=150)
|
||||
bands = [("EARLY EVENING", "18:00 to 20:00", [("18:00", "vortex", "Vortex Prime", "Dragon Ball Z, Gundam Wing", "BLOCK", MUTED), ("18:30", "terra", "Blue Planet II", "Episode 3 of 7", "NEW EPISODE ON ORBIT", MINT),
|
||||
("19:30", "riot", "Futurama", "Next in turn", "TONIGHT", MUTED)]),
|
||||
("PRIME TIME", "20:00 to 22:00", [("20:00", "drivein", "Back to the Future", "Orbit Marquee · tickets open", "DRIVE-IN", GOLD), ("21:00", "three", "Scottish Comedy Night", "Still Game, then Limmy's Show!", "WEEKLY EVENT", GOLD),
|
||||
("21:00", "afterdark", "Joe Bob Saturday", "Tourist Trap (1979) · 131 min", "WEEKLY EVENT", GOLD)]),
|
||||
("LATE", "from 22:00", [("22:00", "paradox", "The X-Files", "Part 1, then part 2 at 22:45", "STORY · 2 PARTS", SKY), ("23:00", "drivein", "The Late Show", "Evil Dead II · 84 min", "DRIVE-IN", GOLD),
|
||||
("23:15", "vortex", "Afterburn", "Ghost in the Shell: SAC", "BLOCK", MUTED)])]
|
||||
for c, (name, hours, items) in enumerate(bands):
|
||||
x = 96 + c * 586
|
||||
s.group(name.title())
|
||||
s.text(x, 240, name, 32, WHITE, HEAD)
|
||||
s.text(x + 556, 238, hours, 20, MUTED, anchor="end")
|
||||
s.rect(x, 252, 556, 1, BLUE)
|
||||
for i, (t, logo, title, sub, tag, colour) in enumerate(items):
|
||||
y = 270 + i * 238
|
||||
s.rect(x, y, 556, 222, PANEL, rx=10)
|
||||
s.text(x + 18, y + 50, t, 38, GOLD, COND, 500)
|
||||
s.img(x + 130, y + 18, 112, 35, LOGO[logo], "Channel badge S")
|
||||
s.text(x + 130, y + 92, title, 25, WHITE, BODY, 600)
|
||||
s.text(x + 130, y + 124, sub, 19, MUTED)
|
||||
s.tag(x + 130, y + 150, tag, colour, 15)
|
||||
if c == 1 and i == 1:
|
||||
s.focus(x, y, 556, 222)
|
||||
s.end()
|
||||
s.hints([("OK", "Details"), ("▶ on now", "Watch live"), ("◀ ▶", "Columns"), ("Back", "Highlights")], "Picks only: the TV Guide has every programme")
|
||||
s.save()
|
||||
|
||||
|
||||
def premieres():
|
||||
s = Screen("whats-on-premieres", "Premieres and Specials")
|
||||
s.masthead("What's On"); s.strip("Premieres & Specials"); s.mock(y=150)
|
||||
s.group("Week strip")
|
||||
for i, (dow, date, count, today) in enumerate([("SAT", "14", "2 specials", True), ("SUN", "15", "3 specials", False), ("MON", "16", "", False), ("TUE", "17", "1 premiere", False),
|
||||
("WED", "18", "", False), ("THU", "19", "", False), ("FRI", "20", "1 premiere", False)]):
|
||||
x = 96 + i * 250
|
||||
s.rect(x, 214, 238, 100, GOLD if today else PANEL if count else DEEP, rx=8, opacity=None if today or count else 0.6)
|
||||
ink = NAVY if today else WHITE
|
||||
s.text(x + 119, 244, dow, 20, NAVY if today else MUTED, BODY, 600, "middle")
|
||||
s.text(x + 119, 282, date, 36, ink, COND, 500, "middle")
|
||||
s.text(x + 119, 304, count, 17, NAVY if today else GOLD, BODY, 600, "middle")
|
||||
s.end()
|
||||
cols = [("FIRST ON ORBIT", [("FIRST ON ORBIT", SKY, "premiere", "A new-arrival film", "Never shown on Orbit", "Fri 20:00"), ("NEW EPISODES", MINT, "terra", "A newly added series", "Episodes 1 and 2", "Tue 20:00")]),
|
||||
("THIS WEEK'S EVENTS", [("WEEKLY EVENT", GOLD, "afterdark", "Joe Bob Saturday", "Tourist Trap (1979)", "Sat 21:00"), ("PPV SUNDAY", GOLD, "ringx", "WrestleMania III", "The full event, 184 min", "Sun 19:08")]),
|
||||
("TAKEOVERS & SPECIALS", [("SPECIAL", PINK, "three", "Scottish Comedy Night", "Fri and Sat, 21:00 to midnight", "Sat 21:00"), ("SUNDAY", PINK, "terra", "Terra Sunday", "The week's centrepiece", "Sun 20:00")])]
|
||||
for c, (name, items) in enumerate(cols):
|
||||
x = 96 + c * 586
|
||||
s.group(name.title())
|
||||
s.text(x, 370, name, 30, WHITE, HEAD)
|
||||
s.rect(x, 382, 556, 1, BLUE)
|
||||
for i, (tag, colour, logo, title, sub, when) in enumerate(items):
|
||||
y = 400 + i * 296
|
||||
s.rect(x, y, 556, 280, PANEL, rx=12)
|
||||
s.tag(x + 22, y + 20, tag, colour)
|
||||
s.img(x + 422, y + 16, 112, 35, LOGO[logo], "Channel badge S")
|
||||
s.text(x + 22, y + 112, title, 34, WHITE, HEAD)
|
||||
s.text(x + 22, y + 150, sub, 21, MUTED)
|
||||
s.text(x + 22, y + 248, when, 30, GOLD, COND, 500)
|
||||
s.rect(x + 160, y + 222, 92, 32, "none", rx=4, stroke=MINT, sw=2)
|
||||
s.text(x + 206, y + 245, "BOOKED", 17, MINT, BODY, 600, "middle")
|
||||
if c == 0 and i == 0:
|
||||
s.focus(x, y, 556, 280, 12)
|
||||
s.end()
|
||||
s.hints([("▲ ▼", "Week strip and columns"), ("OK", "Details, set a reminder"), ("Back", "Highlights")], "Unbooked proposals never appear here")
|
||||
s.save()
|
||||
|
||||
|
||||
def details():
|
||||
s = Screen("whats-on-details", "Programme details")
|
||||
s.rect(820, 0, 1100, 1080, "#0E2B58", id="Artwork (Emby backdrop)")
|
||||
s.text(1720, 150, "Emby artwork (backdrop)", 20, MUTED, anchor="end")
|
||||
s.parts.append('<defs><linearGradient id="fade" x1="0" x2="1"><stop offset="0" stop-color="#071632"/><stop offset="0.46" stop-color="#071632"/><stop offset="0.75" stop-color="#071632" stop-opacity="0.5"/><stop offset="1" stop-color="#071632" stop-opacity="0.1"/></linearGradient></defs>')
|
||||
s.rect(0, 0, 1920, 1080, "url(#fade)", id="Readability fade")
|
||||
s.group("Details")
|
||||
s.img(96, 64, 192, 60, LOGO["paradox"], "Channel badge L")
|
||||
s.mock(x=446, y=78)
|
||||
s.text(96, 230, "THE X-FILES", 80, WHITE, HEAD)
|
||||
s.text(96, 284, "Season 2, Episode 25 · Anasazi", 32, WHITE, BODY, 600)
|
||||
x = 96
|
||||
x += s.tag(x, 312, "STORY · PART 1 OF 2", SKY, 18) + 12
|
||||
s.rect(x, 312, 104, 30, "none", rx=4, stroke=MUTED); s.text(x + 52, 334, "45 min", 18, WHITE, BODY, 600, "middle")
|
||||
s.rect(96, 370, 1000, 130, PANEL, rx=12, id="Verified airtime")
|
||||
s.text(122, 428, "Tonight 22:00 to 22:45", 46, GOLD, COND, 500)
|
||||
s.rect(560, 400, 96, 32, "none", rx=4, stroke=MINT); s.text(608, 423, "BOOKED", 17, MINT, BODY, 600, "middle")
|
||||
s.text(122, 474, "Then part 2, The Blessing Way, straight after at 22:45 on Paradox", 21, MUTED)
|
||||
for i, line in enumerate(["Mulder receives leaked files that could prove the existence of", "extraterrestrial life, and the trail leads to a buried railcar in", "the New Mexico desert. [Synopsis from Emby, four lines at most.]"]):
|
||||
s.text(96, 560 + i * 36, line, 24, "#E4ECF8")
|
||||
s.text(96, 700, "Why it's here: a complete two-part story tonight, on Paradox's late block.", 20, MUTED)
|
||||
for i, (label, w, primary) in enumerate([("Remind me at 22:00", 318, True), ("See Paradox in the TV Guide", 410, False), ("Back", 120, False)]):
|
||||
x = 96 + sum([318, 410, 120][:i]) + i * 16
|
||||
s.rect(x, 900, w, 64, GOLD if primary else PANEL, rx=8)
|
||||
s.text(x + w / 2, 942, label, 26, NAVY if primary else WHITE, BODY, 600, "middle")
|
||||
if primary:
|
||||
s.focus(x, 900, w, 64, 8)
|
||||
s.text(96, 1010, "On now, the first button reads Watch live. Nothing here can change a booking.", 18, MUTED)
|
||||
s.end()
|
||||
s.save()
|
||||
|
||||
|
||||
def drive_in():
|
||||
s = Screen("drive-in-redesign", "Orbit Drive-In (redesign)")
|
||||
s.img(0, 0, 1920, 1080, LOT, "Drive-In lot scene (approved artwork)", "xMidYMid slice")
|
||||
s.parts.append('<defs><linearGradient id="dim" x1="0" x2="0" y1="0" y2="1"><stop offset="0" stop-color="#071632" stop-opacity="0.85"/><stop offset="0.22" stop-color="#071632" stop-opacity="0.15"/><stop offset="0.6" stop-color="#071632" stop-opacity="0.35"/><stop offset="1" stop-color="#071632" stop-opacity="0.95"/></linearGradient></defs>')
|
||||
s.rect(0, 0, 1920, 1080, "url(#dim)", id="Readability fade")
|
||||
s.masthead("Drive-In"); s.mock(y=150)
|
||||
s.group("Tonight's bill (on the big screen)")
|
||||
s.rect(1300, 262, 524, 316, NAVY, rx=6, opacity=0.92)
|
||||
s.text(1562, 312, "TONIGHT · ORBIT MARQUEE", 26, GOLD, HEAD, anchor="middle")
|
||||
s.text(1562, 382, "BACK TO THE", 54, WHITE, HEAD, anchor="middle")
|
||||
s.text(1562, 444, "FUTURE", 54, WHITE, HEAD, anchor="middle")
|
||||
s.text(1562, 496, "Gates 19:55 · Feature 20:00", 32, GOLD, COND, 500, "middle")
|
||||
s.text(1562, 540, "1985 · 116 min · Late Show 23:00", 21, MUTED, anchor="middle")
|
||||
s.end()
|
||||
s.group("This week's bills")
|
||||
s.rect(96, 650, 1728, 340, NAVY, rx=12, opacity=0.9)
|
||||
s.text(124, 700, "THIS WEEK AT THE DRIVE-IN", 30, WHITE, HEAD)
|
||||
s.img(1520, 668, 260, 81, TICKET, "Ticket")
|
||||
s.text(1500, 702, "Ticket held for tonight", 22, MINT, BODY, 600, "end")
|
||||
s.text(1500, 730, "Reminder 5 minutes before, and at the start", 18, MUTED, anchor="end")
|
||||
for i, (dow, t, kind, title, held) in enumerate([("SAT", "20:00", "ORBIT MARQUEE", "Back to the Future", True), ("SAT", "23:00", "THE LATE SHOW", "Evil Dead II", False),
|
||||
("SUN", "20:00", "ORBIT MARQUEE", "Jaws", True), ("FRI", "20:00", "DOUBLE BILL", "Terminator Double Bill", False),
|
||||
("SAT", "19:00", "TRIPLE BILL", "Back to the Future Trilogy", False)]):
|
||||
x = 124 + i * 338
|
||||
s.rect(x, 770, 322, 196, PANEL, rx=10)
|
||||
s.text(x + 18, 806, dow, 18, MUTED, BODY, 600)
|
||||
s.text(x + 18, 846, t, 36, GOLD, COND, 500)
|
||||
s.text(x + 18, 878, kind, 15, GOLD, BODY, 600, spacing=0.5)
|
||||
s.text(x + 18, 910, title, 19 if len(title) > 22 else 21, WHITE, BODY, 600)
|
||||
if held:
|
||||
s.tag(x + 18, 924, "TICKET HELD", MINT, 15)
|
||||
else:
|
||||
s.rect(x + 18, 924, 150, 27, "none", rx=4, stroke=GOLD); s.text(x + 93, 943, "TAKE A TICKET", 15, GOLD, BODY, 600, "middle")
|
||||
if i == 0:
|
||||
s.focus(x, 770, 322, 196)
|
||||
s.end()
|
||||
s.hints([("OK", "Take or return a ticket"), ("▶ on tonight", "Go to the big screen"), ("◀ ▶", "Bills"), ("Back", "Home")], "Bills come from the Drive-In's own booked calendar")
|
||||
s.save()
|
||||
|
||||
|
||||
def arcade():
|
||||
s = Screen("arcade-redesign", "Orbit Arcade (redesign)")
|
||||
s.masthead("Arcade"); s.mock(y=150)
|
||||
s.group("Section strip")
|
||||
s.rect(96, 134, 1728, 3, GOLD)
|
||||
s.img(96, 146, 180, 63, ARCADE_LOGO, "Arcade logo")
|
||||
s.text(300, 186, "Six small games, all on the remote", 24, MUTED, BODY, 600)
|
||||
s.end()
|
||||
s.group("Featured game")
|
||||
s.img(96, 236, 1056, 594, BEDLAM, "Game art (approved Bedlam artwork)", "xMidYMid slice")
|
||||
s.rect(96, 236, 1056, 594, "none", rx=12, stroke=BLUE)
|
||||
s.rect(96, 846, 1056, 120, DEEP, rx=10)
|
||||
s.text(122, 896, "OrbitHive Bedlam", 34, WHITE, HEAD)
|
||||
s.text(122, 936, "Best score 48,200 · Wave 12", 22, MUTED)
|
||||
s.rect(900, 870, 228, 64, GOLD, rx=8); s.text(1014, 912, "Play", 28, NAVY, BODY, 600, "middle")
|
||||
s.end()
|
||||
s.group("Game tiles")
|
||||
import math
|
||||
games = ["OrbitHive Bedlam", "Snake", "Block Drop", "Brick Break", "Pairs", "Patience", "More soon", "More soon"]
|
||||
for i, g in enumerate(games):
|
||||
col, row = i % 2, i // 2
|
||||
# Pointy-top hexes that touch: 187 px across, rows 162 px apart, odd rows half a hex in.
|
||||
r = 108
|
||||
cx, cy = 1360 + col * 194 + (97 if row % 2 else 0), 316 + row * 166
|
||||
pts = " ".join(f"{cx + r * math.cos(math.radians(60 * k - 30)):.1f},{cy + r * math.sin(math.radians(60 * k - 30)):.1f}" for k in range(6))
|
||||
soon = g == "More soon"
|
||||
fill = GOLD if i == 0 else ("none" if soon else PANEL)
|
||||
s.parts.append(f'<polygon id="Tile {escape(g)}" points="{pts}" fill="{fill}"' + (f' stroke="{BLUE}" stroke-width="2" stroke-dasharray="8 6"' if soon else "") + "/>")
|
||||
s.text(cx, cy + 8, g if len(g) < 12 else g.split()[-1], 24, NAVY if i == 0 else (MUTED if soon else WHITE), BODY, 600, "middle")
|
||||
if i == 0:
|
||||
r2 = r + 9
|
||||
pts2 = " ".join(f"{cx + r2 * math.cos(math.radians(60 * k - 30)):.1f},{cy + r2 * math.sin(math.radians(60 * k - 30)):.1f}" for k in range(6))
|
||||
s.parts.append(f'<polygon id="Focus ring" points="{pts2}" fill="none" stroke="{WHITE}" stroke-width="4"/>')
|
||||
s.end()
|
||||
s.hints([("OK", "Play"), ("◀ ▶ ▲ ▼", "Choose a game"), ("Back", "Home")], "Scores stay on this box")
|
||||
s.save()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
for build in (highlights, tonight, premieres, details, drive_in, arcade):
|
||||
build()
|
||||
print("wrote", sorted(p.name for p in HERE.glob("*.svg")))
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 191 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 265 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 241 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 239 KiB |
Reference in New Issue
Block a user