diff --git a/design/directors-desk/build-desk.py b/design/directors-desk/build-desk.py new file mode 100644 index 00000000..0883fd7e --- /dev/null +++ b/design/directors-desk/build-desk.py @@ -0,0 +1,57 @@ +#!/usr/bin/env python3 +"""Director's Desk, read-only design (Stage D phase 4, 4 November 2026). One TV screen, Orbit's navy and gold, built from the +second trial's real numbers. A design proposal only: nothing in the app, no decisions from it.""" +from pathlib import Path +from PIL import Image, ImageDraw, ImageFont +HERE = Path(__file__).resolve().parent +F = HERE.parent / 'channels' / 'network-fonts' +def font(name, size): return ImageFont.truetype(str(F / name), size) +W, H = 1920, 1080 +NAVY, DEEP, PANEL, GOLD, WHITE, MUTED, MINT, SKY = (7, 22, 50), (4, 13, 32), (16, 40, 84), (242, 193, 78), (255, 255, 255), (160, 178, 206), (110, 220, 170), (120, 190, 255) +im = Image.new('RGB', (W, H), DEEP); d = ImageDraw.Draw(im) +anton, semi, reg, cond = (lambda s: font('anton-regular.ttf', s)), (lambda s: font('barlow-semibold.ttf', s)), (lambda s: font('barlow-regular.ttf', s)), (lambda s: font('barlow-condensed-medium.ttf', s)) +def box(x, y, w, h, fill=PANEL, r=14, outline=None): d.rounded_rectangle((x, y, x + w, y + h), r, fill=fill, outline=outline, width=3 if outline else 0) +# Header +d.text((80, 56), "DIRECTOR'S DESK", font=anton(64), fill=GOLD) +d.text((84, 140), 'This week on Orbit · Wednesday 4 November', font=reg(30), fill=MUTED) +x = 1180 +for label, on in (('FAMILIAR', False), ('BALANCED', True), ('SURPRISE ME', False)): + w = d.textlength(label, font=semi(26)) + 40 + box(x, 70, w, 52, fill=GOLD if on else PANEL, r=26); d.text((x + 20, 80), label, font=semi(26), fill=DEEP if on else WHITE); x += w + 14 +d.text((1180, 136), 'Auto-approval: OFF', font=semi(24), fill=MINT) +# This week: routine matches as counts +box(80, 200, 520, 700) +d.text((112, 226), 'THIS WEEK', font=anton(34), fill=WHITE) +d.text((112, 280), '392', font=anton(72), fill=GOLD); d.text((260, 304), 'new to the library', font=reg(30), fill=WHITE) +d.text((112, 380), '38', font=anton(56), fill=MINT); d.text((210, 396), 'routine matches, 11 channels', font=reg(28), fill=WHITE) +rows = [('Ring X', 10), ('Dark Files', 7), ('Vortex', 6), ('Evidence', 4), ('Orbit Horror', 4), ('Odyssey', 2), ('+5 more', 5)] +y = 470 +for name, n in rows: + d.text((112, y), name, font=reg(26), fill=MUTED); d.rounded_rectangle((330, y + 8, 330 + n * 22, y + 26), 6, fill=SKY); d.text((340 + n * 22, y), str(n), font=semi(26), fill=WHITE); y += 44 +d.text((112, 800), 'Held as Proposed, not booked.', font=reg(24), fill=MUTED); d.text((112, 834), 'OK to look through them.', font=reg(24), fill=MUTED) +# Worth a look: 3 to 5 discoveries +d.text((640, 210), 'WORTH A LOOK', font=anton(34), fill=WHITE) +picks = [('PREMIERE', 'Blue Planet III', 'Terra', 'David Attenborough returns to the oceans; new 31 October'), + ('STRONG MATCH', 'The Fit Bit Killer', 'Dark Files', 'True crime: a murder in Athens, and the questions after'), + ('STRONG MATCH', 'Dustfall', 'Evidence', 'A detective returns home to a dangerous investigation'), + ('NEW ANIME', 'A Tale of the Secret Saint', 'Vortex', 'A would-be knight awakens as a legendary saint')] +y = 260 +for tag, title, ch, why in picks: + focus = title == 'Blue Planet III' + box(640, y, 640, 146, fill=(28, 58, 112) if focus else PANEL, outline=GOLD if focus else None) + d.text((668, y + 16), tag, font=semi(22), fill=GOLD); d.text((668, y + 44), title, font=semi(36), fill=WHITE) + d.text((668, y + 94), why, font=reg(24), fill=MUTED); d.text((1150, y + 18), ch.upper(), font=semi(22), fill=SKY) + y += 160 +# Needs your eye: genuine decisions +d.text((1320, 210), 'NEEDS YOUR EYE', font=anton(34), fill=WHITE) +asks = [('Africa: Earth’s Wild Home', 'Terra or Odyssey?'), ('Wicker', 'BritX or Orbit Romance?'), ('Mum, I’m Alien Pregnant', 'Sci-Fi or Horror?')] +y = 260 +for title, q in asks: + box(1320, y, 520, 120); d.text((1348, y + 18), title, font=semi(30), fill=WHITE); d.text((1348, y + 66), q, font=reg(26), fill=GOLD); y += 136 +d.text((1320, 680), 'RECENTLY DECIDED', font=anton(30), fill=WHITE) +for k, line in enumerate(('Made-for-TV romances: not for Orbit', 'Tales from the Crypt: After Dark strand', 'Black Mirror: Paradox from 21:00')): + d.text((1320, 730 + k * 44), '· ' + line, font=reg(26), fill=MUTED) +# Footer +d.text((80, 990), 'OK open LEFT / RIGHT move BACK home', font=cond(28), fill=MUTED) +d.text((1080, 990), 'Read-only preview: nothing is booked or changed from this screen', font=cond(28), fill=MUTED) +im.save(HERE / 'directors-desk-v1.png') diff --git a/design/directors-desk/directors-desk-v1.png b/design/directors-desk/directors-desk-v1.png new file mode 100644 index 00000000..4249e6ae Binary files /dev/null and b/design/directors-desk/directors-desk-v1.png differ diff --git a/docs/replays/stage-d-evaluate.py b/docs/replays/stage-d-evaluate.py new file mode 100644 index 00000000..6ef59006 --- /dev/null +++ b/docs/replays/stage-d-evaluate.py @@ -0,0 +1,15 @@ +import json,sys,collections +S=sys.argv[1]; V={o['id']:o for o in json.load(open(f'{S}/{sys.argv[2]}'))} +def ev(L,th): + must=[i for i in L if L[i] and '' not in L[i]]; none=[i for i in L if not L[i]] + sug=[i for i in L if V[i]['s1']>=th and V[i]['s2']