Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat(android): write Play listing artwork beside the listing worksheet and let the X grid headline cross the seam

nirholasfce654a81469
diff --git a/marketing/android-launch/README.md b/marketing/android-launch/README.md
index 972183e90..6cf05e3d4 100644
--- a/marketing/android-launch/README.md
+++ b/marketing/android-launch/README.md
@@ -39,35 +39,83 @@ actually behaves:
1. **Upload order is the layout.** X fills the grid 1, 2 across the top then
3, 4 across the bottom, in the order the images were attached. Attach them
out of order and the picture reassembles scrambled.
-2. **Nothing solid may cross a cut.** This is where the grid differs from the
- store carousel, and it is worth understanding before editing the layout. A
- carousel shows one panel at a time, so a phone centred on a seam reads as
- "continues offscreen" and makes the strip feel continuous. X shows all four
- tiles at once with a gutter between them, so the identical phone reads as
- broken alignment: half a face on the left, half on the right, a gap through
- the middle. The first draft of this composition did exactly that and had to
- be rebuilt.
-
- So every phone sits wholly inside one tile, the headline block sits entirely
- inside the top left, and the footer entirely inside the bottom right. Only
- the scenery crosses: the glow field, the light beam and the floor. Those are
- soft and edgeless, so a gutter through them reads as continuity rather than
- damage. Tapping one image opens only that image, and some clients render the
- four as a list rather than a collage, so each tile has to be a finished
- picture on its own terms.
-
- The rule is enforced, not just documented. `make-x-grid.mjs` computes each
- phone's rotated extent, works out which tile it lands in, and throws if it
- comes within 96px of that tile's edge. A layout change that would push a
- phone across a seam fails the build instead of shipping.
-
-A third constraint is defensive: X's collage container has changed aspect
-before, and a quadrant can only ever be trimmed on one axis when it does. That
-96px keep-out is what absorbs it.
-
-A consequence worth knowing: a 9:16 phone cannot fill a 16:9 tile, so a
-quadrant holding one phone looks empty. Each populated quadrant holds a layered
-pair instead, a smaller one set back and dimmed behind a larger one in front.
+2. **What may cross a cut depends on how big it is.** This is the whole craft
+ of the format, and it is worth reading before editing the layout.
+
+ X puts a hairline gutter between the cells, roughly half a percent of a
+ tile's width. Through a **large, bold shape** that hairline is invisible or
+ reads as intentional. Through **a face, or 12px of UI text**, it reads as
+ broken alignment: half a head on the left, half on the right, a line down the
+ middle. A store carousel has no such problem, because it shows one panel at a
+ time and an object leaving the frame simply continues offscreen. The grid
+ shows all four at once.
+
+ So the composition splits by scale:
+
+ - **The headline crosses**, and it is the reason the post reads as one
+ picture rather than four slides. It is drawn as two halves that meet at
+ the vertical seam with a word space between them, so the cut falls between
+ "Now an" and "Android app." and never through a glyph. Assembled it is one
+ line across the full width; split, each tile still reads as a complete
+ phrase.
+ - **The scenery crosses.** The glow field, the light beam and the floor are
+ soft and edgeless, so a gutter through them reads as continuity.
+ - **The phones never cross.** They carry faces and small type, which is
+ exactly what a gutter ruins.
+
+ Both rules are enforced, not just written down. The renderer computes each
+ phone's *rotated* extent, works out which tile it lands in, and throws if it
+ comes within 96px of that tile's edge. It then measures the two headline
+ halves in the page and throws if either reaches the seam. A layout change
+ that would cut a phone, or close the word space, fails the build.
+
+A consequence worth knowing: a 9:16 phone cannot fill a 16:9 tile, so a tile
+holding one phone looks empty. The two bottom tiles hold a layered pair each, a
+smaller one set back and dimmed behind a larger one in front.
+
+The headline is sized by the page rather than hardcoded. The two halves are
+unequal ("Now an" against "Android app."), and each has the same room on its own
+side of the seam, so the wider half sets the size for both. Fitting their
+combined width instead runs the longer half off the canvas.
+
+## Why the ground is pure black
+
+X's dark timeline is `#000000`. Anything lighter behind the composition draws
+four visible rectangles into the feed, and the gutters between them announce
+where the cuts are. At true black the outer edges dissolve, the gutters stop
+reading as borders, and the post floats in the timeline as one image.
+
+Two consequences shape the whole design:
+
+- **Nothing may fill the frame with a colour.** The ground is radial glows over
+ black that fall off to nothing before the edges, never a filled gradient.
+- **The light has to stay dim.** The gutter itself is black, so wherever the
+ composition is brighter the gap cuts a visible line through it. Low contrast
+ across a seam hides it; a bright field turns it into a crosshair.
+
+Both are asserted after the render, because a colour tweak undoes them silently
+and the damage only appears once the post is live:
+
+```
+[x-grid] border 4/255, brightest seam pixel 29/255
+```
+
+The renderer samples the outer border and both seam lines and throws if the
+border exceeds 6/255 or the composition exceeds 40/255 anywhere a gutter falls.
+
+The phones are drawn in real 3D for the same reason: on a flat black field a
+2D-tilted rectangle looks like a sticker. Each is turned on its Y axis and
+pitched on its X under a 2600px perspective, lit from the upper left so the
+bezel has a bright edge and a dark one, with a specular sheen across the glass.
+The seam guard is unaffected, because a turn foreshortens the slab: a phone that
+clears the seam flat clears it turned.
+
+## The mark appears twice
+
+Once large at the top left of the first tile, once quietly at the bottom right
+of the last. Tiles are opened one at a time and some clients render them as a
+list, so the first and last both have to carry the brand alone. A single mark in
+one corner leaves three of the four tiles unbranded.
## The phones hold real product
diff --git a/scripts/make-x-grid.mjs b/scripts/make-x-grid.mjs
index 5dbcf7bbb..5346c32df 100644
--- a/scripts/make-x-grid.mjs
+++ b/scripts/make-x-grid.mjs
@@ -50,7 +50,18 @@ const OUT = args.out ? path.resolve(String(args.out)) : path.join(ROOT, 'marketi
above this, and the tiles stay crisp when a client renders them full width. */
const W = 4096;
const H = 2304;
-const BG = '#080814';
+/* Pure black, matching X's dark timeline. Any lighter ground draws four
+ visible rectangles into the feed and the seams announce themselves; at
+ #000000 the gutters vanish and the composition floats. Everything that
+ lights the scene must therefore fall off to true black before it reaches a
+ tile edge, which is why the ground below is radial glows over black rather
+ than a filled gradient.
+
+ The glows are also kept dim on purpose. The gutter itself is pure black, so
+ wherever the composition is brighter than black the gap shows as a line
+ through it. Low contrast across a seam makes that line disappear; a bright
+ field makes it a visible crosshair. */
+const BG = '#000000';
/* X's collage container is not documented and has changed before. Whatever
aspect it uses, each cell inherits it, so a quadrant can only ever be
@@ -58,6 +69,14 @@ const BG = '#080814';
many pixels of a quadrant's own edge. */
const SAFE = 96;
+/* Room each headline half has on its own side of the seam: half the canvas,
+ less the tile keep-out and the 44px that opens the word space at the cut. */
+const HALF_ROOM = W / 2 - SAFE - 44;
+
+/* Ceilings for the two properties asserted after the render. */
+const BORDER_MAX = 6;
+const SEAM_MAX = 40;
+
const FONT_FACES = [
['Space Grotesk', '300 700', 'space-grotesk-latin.woff2'],
['Inter', '300 800', 'inter-latin.woff2'],
@@ -66,7 +85,7 @@ const FONT_FACES = [
const MARK_URI = `data:image/png;base64,${readFileSync(path.join(ROOT, 'public/pwa-512x512.png')).toString('base64')}`;
/** The product screens, one per phone. Raws come from the Play listing run. */
-const SCREENS = ['screen-1', 'screen-2', 'screen-3', 'screen-4', 'screen-5'];
+const SCREENS = ['screen-2', 'screen-3', 'screen-4', 'screen-5'];
const missing = SCREENS.filter((s) => !existsSync(path.join(RAW, `${s}.png`)));
if (missing.length) {
throw new Error(
@@ -87,20 +106,19 @@ const shots = Object.fromEntries(SCREENS.map((s) => [s, `data:image/png;base64,$
* A single 9:16 phone cannot fill a 16:9 tile, so each populated quadrant holds
* a layered pair: a smaller one set back, a larger one in front.
*/
-const Q = { topRight: [W * 0.75, H * 0.25], bottomLeft: [W * 0.25, H * 0.75], bottomRight: [W * 0.75, H * 0.75] };
+const Q = { bottomLeft: [W * 0.25, H * 0.75], bottomRight: [W * 0.75, H * 0.75] };
const PHONE_LAYOUT = [
- { screen: 'screen-4', at: Q.topRight, dx: -298, dy: -44, w: 404, tilt: -7, back: true },
- { screen: 'screen-1', at: Q.topRight, dx: 142, dy: 34, w: 486, tilt: 3 },
- { screen: 'screen-5', at: Q.bottomLeft, dx: 292, dy: -50, w: 404, tilt: 7, back: true },
- { screen: 'screen-2', at: Q.bottomLeft, dx: -148, dy: 30, w: 486, tilt: -3 },
- { screen: 'screen-3', at: Q.bottomRight, dx: -210, dy: 18, w: 500, tilt: -2 },
+ { screen: 'screen-5', at: Q.bottomLeft, dx: 300, dy: -54, w: 396, tilt: 6, turn: -20, pitch: 7, back: true },
+ { screen: 'screen-2', at: Q.bottomLeft, dx: -146, dy: 28, w: 478, tilt: -3, turn: 15, pitch: 5 },
+ { screen: 'screen-4', at: Q.bottomRight, dx: -520, dy: -46, w: 396, tilt: -6, turn: 20, pitch: 7, back: true },
+ { screen: 'screen-3', at: Q.bottomRight, dx: -180, dy: 30, w: 478, tilt: 2, turn: -15, pitch: 5 },
];
/* The phone is 9:16 plus a 13px bezel each side; this is the drawn height, used
to assert every phone clears its own tile's edges before anything renders. */
const phoneHeight = (w) => (w - 26) * (1920 / 1080) + 26;
-const PHONES = PHONE_LAYOUT.map(({ screen, at, dx, dy, w, tilt, back }) => {
+const PHONES = PHONE_LAYOUT.map(({ screen, at, dx, dy, w, tilt, turn = 0, pitch = 4, back }) => {
const cx = at[0] + dx;
const cy = at[1] + dy;
const h = phoneHeight(w);
@@ -118,7 +136,10 @@ const PHONES = PHONE_LAYOUT.map(({ screen, at, dx, dy, w, tilt, back }) => {
`(minimum ${SAFE}); it would be cut by the collage seam`,
);
}
- return `<div class="phone${back ? ' back' : ''}" style="left:${cx}px;top:${cy}px;width:${w}px;--tilt:${tilt}deg">
+ /* The 2D extent above is the conservative case: rotateY and rotateX
+ foreshorten the slab, so a phone that clears the seam flat clears it
+ turned. */
+ return `<div class="phone${back ? ' back' : ''}" style="left:${cx}px;top:${cy}px;width:${w}px;--tilt:${tilt}deg;--turn:${turn}deg;--pitch:${pitch}deg">
<img src="${shots[screen]}" alt="">
</div>`;
}).join('\n');
@@ -132,53 +153,102 @@ body{width:${W}px;height:${H}px;background:${BG};color:#fff;overflow:hidden;posi
what makes the reassembled post read as a single photograph. */
.glow{position:absolute;inset:0;
background:
- radial-gradient(42% 48% at 14% 22%, rgba(96,140,255,.30), transparent 70%),
- radial-gradient(38% 46% at 74% 18%, rgba(64,196,255,.22), transparent 72%),
- radial-gradient(40% 50% at 34% 84%, rgba(150,90,255,.26), transparent 70%),
- radial-gradient(36% 48% at 88% 78%, rgba(120,110,255,.24), transparent 72%),
- linear-gradient(160deg, #0a0a1c 0%, #080814 58%, #06060f 100%)}
-.beam{position:absolute;left:-8%;right:-8%;top:34%;height:520px;transform:rotate(-4deg);
- background:linear-gradient(90deg, transparent, rgba(150,200,255,.14) 18%, rgba(190,220,255,.24) 52%, rgba(150,200,255,.14) 82%, transparent);
- filter:blur(80px)}
-.floor{position:absolute;left:0;right:0;bottom:0;height:640px;
- background:linear-gradient(180deg, transparent, rgba(4,5,16,.80))}
+ radial-gradient(28% 32% at 20% 30%, rgba(78,120,255,.19), transparent 70%),
+ radial-gradient(24% 28% at 78% 22%, rgba(56,180,255,.13), transparent 72%),
+ radial-gradient(28% 32% at 28% 80%, rgba(140,84,255,.15), transparent 70%),
+ radial-gradient(24% 30% at 82% 78%, rgba(104,96,255,.12), transparent 72%)}
+.beam{position:absolute;left:8%;right:8%;top:36%;height:440px;transform:rotate(-4deg);
+ background:linear-gradient(90deg, transparent, rgba(150,200,255,.08) 22%, rgba(190,220,255,.12) 50%, rgba(150,200,255,.08) 78%, transparent);
+ filter:blur(110px)}
/* Headline block, wholly inside the top-left quadrant and clear of its edges. */
-.head{position:absolute;left:${SAFE + 34}px;top:${SAFE + 96}px;width:${W / 2 - SAFE * 2 - 40}px}
-.lockup{display:flex;align-items:center;gap:26px;margin-bottom:44px}
-.lockup img{width:104px;height:104px;border-radius:26px}
-.lockup span{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:68px;letter-spacing:-.045em}
-h1{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:132px;line-height:1.02;letter-spacing:-.04em}
-h1 em{font-style:normal;color:#8fb4ff}
-.head p{margin-top:34px;font-size:41px;line-height:1.38;color:#9bb0d4;max-width:900px}
-
-/* Phones. Two straddle a seam on purpose: the composition has to cross the
- cuts, or the four tiles read as four unrelated posters. */
-.phone{position:absolute;transform:translate(-50%,-50%) rotate(var(--tilt,0deg));
- border-radius:58px;padding:13px;background:linear-gradient(160deg,#2f3350,#12131f 58%,#262a40);
- box-shadow:0 52px 140px rgba(3,4,14,.82), 0 0 0 1px rgba(255,255,255,.07) inset}
+/* The mark, top left of the first tile. Sized against the headline rather than
+ tucked into a corner: at 96px on a 4096px canvas it read as a watermark. */
+.lockup{position:absolute;left:${SAFE + 40}px;top:${SAFE + 40}px;display:flex;align-items:center;gap:30px}
+.lockup img{width:168px;height:168px;border-radius:42px}
+.lockup span{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:110px;letter-spacing:-.045em}
+
+/* A second, quieter mark in the last tile. Tiles are tapped one at a time and
+ shown as a list by some clients, so the first and last both have to carry the
+ brand on their own; without this, three of the four are unbranded. */
+.sign{position:absolute;right:${SAFE + 40}px;bottom:${SAFE + 44}px;display:flex;align-items:center;gap:20px}
+.sign img{width:82px;height:82px;border-radius:21px}
+.sign span{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:60px;letter-spacing:-.045em}
+
+/* The headline is one line drawn as two halves that meet at the vertical seam.
+ The gap between them is a word space, so the cut lands between "an" and
+ "Android" and never through a glyph: assembled it reads as one line, split it
+ reads as two complete phrases. Sized and positioned by the page itself, so
+ the halves stay locked to the seam whatever the font metrics do. */
+h1{position:absolute;top:${H * 0.30}px;margin:0;white-space:nowrap;
+ font-family:'Space Grotesk',sans-serif;font-weight:600;line-height:1;letter-spacing:-.04em;
+ transform:translateY(-50%)}
+#h-left{right:${W / 2 + 44}px;text-align:right}
+#h-right{left:${W / 2 + 44}px;color:#8fb4ff}
+
+/* Phones. Every one sits wholly inside a single tile: a face or 12px of UI
+ text cut by the collage gutter reads as broken, unlike the headline above,
+ which is large enough that the cut hides inside a word space. */
+.phone{position:absolute;
+ transform:translate(-50%,-50%) perspective(2600px) rotateY(var(--turn,0deg)) rotateX(var(--pitch,4deg)) rotate(var(--tilt,0deg));
+ transform-style:preserve-3d;
+ border-radius:58px;padding:13px;
+ /* Lit from the upper left, so the bezel has a bright edge and a dark one and
+ the slab reads as a solid object rather than a flat rounded rectangle. */
+ background:linear-gradient(135deg,#4a5070 0%,#2a2e44 26%,#12131f 62%,#31364f 100%);
+ box-shadow:
+ 0 80px 150px rgba(0,0,0,.92),
+ 0 18px 44px rgba(0,0,0,.7),
+ 0 0 0 1px rgba(255,255,255,.10) inset,
+ 0 2px 0 rgba(255,255,255,.16) inset}
.phone img{display:block;width:100%;border-radius:47px;background:${BG}}
-.phone.back{opacity:.86;filter:saturate(.92) brightness(.88)}
+/* A specular sheen across the glass, angled with the turn. */
+.phone::after{content:'';position:absolute;inset:13px;border-radius:47px;pointer-events:none;
+ background:linear-gradient(118deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 18%, transparent 42%)}
+.phone.back{opacity:.9;filter:saturate(.94) brightness(.8)}
-/* Footer line, wholly inside the bottom-right quadrant. */
-.foot{position:absolute;right:${SAFE + 34}px;bottom:${SAFE + 40}px;text-align:right}
-.foot .big{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:56px;letter-spacing:-.03em}
-.foot .small{margin-top:18px;font-size:32px;color:#8fa3c6;line-height:1.45}
+/* Value line and install facts, wholly inside the bottom-right tile. */
+.foot{position:absolute;right:${SAFE + 40}px;bottom:${SAFE + 190}px;text-align:right;max-width:860px}
+.foot .lede{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:52px;line-height:1.22;letter-spacing:-.03em}
+.foot .small{margin-top:22px;font-size:31px;color:#8fa3c6}
</style><body>
-<div class="glow"></div><div class="beam"></div><div class="floor"></div>
+<div class="glow"></div><div class="beam"></div>
-<div class="head">
- <div class="lockup"><img src="${MARK_URI}" alt=""><span>three.ws</span></div>
- <h1>Now an<br><em>Android app.</em></h1>
- <p>Turn a photo or a prompt into 3D models and AI agents you own, on your phone.</p>
-</div>
+<div class="lockup"><img src="${MARK_URI}" alt=""><span>three.ws</span></div>
+
+<h1 id="h-left">Now an</h1><h1 id="h-right">Android app.</h1>
${PHONES}
<div class="foot">
- <div class="big">three.ws</div>
+ <div class="lede">A photo or a prompt in.<br>A 3D model or an agent out.</div>
<div class="small">Android 6.0+ &middot; free &middot; open source</div>
</div>
+
+<div class="sign"><img src="${MARK_URI}" alt=""><span>three.ws</span></div>
+
+<script>
+ /* Fit the two halves so the whole line spans the width, then hold them either
+ side of the seam. Measured here rather than guessed, because a hardcoded
+ font-size drifts the moment the copy or the face changes. */
+ (async () => {
+ await document.fonts.ready;
+ const L = document.getElementById('h-left');
+ const R = document.getElementById('h-right');
+ const PROBE = 200;
+ L.style.fontSize = R.style.fontSize = PROBE + 'px';
+ /* The halves are unequal ("Now an" vs "Android app."), and each has the
+ same room on its own side of the seam, so the wider one sets the size.
+ Fitting their combined width instead overflows the canvas. */
+ const room = ${HALF_ROOM};
+ const size = PROBE * Math.min(
+ room / L.getBoundingClientRect().width,
+ room / R.getBoundingClientRect().width,
+ );
+ L.style.fontSize = R.style.fontSize = size + 'px';
+ document.documentElement.dataset.fitted = '1';
+ })();
+</script>
</body>`;
mkdirSync(OUT, { recursive: true });
@@ -193,11 +263,66 @@ try {
return document.fonts.check('600 132px "Space Grotesk"') && document.fonts.check('400 41px "Inter"');
});
if (!loaded) throw new Error('[x-grid] brand fonts did not load; the composition would render in a fallback face');
+ await page.waitForFunction(() => document.documentElement.dataset.fitted === '1');
+
+ /* The seam must fall in the gap between the halves, never through a glyph. */
+ const seam = await page.evaluate((mid) => {
+ const left = document.getElementById('h-left');
+ const right = document.getElementById('h-right');
+ const l = left.getBoundingClientRect();
+ const r = right.getBoundingClientRect();
+ return { leftEnd: l.right, rightStart: r.left, mid, fontSize: getComputedStyle(left).fontSize };
+ }, W / 2);
+ if (seam.leftEnd >= seam.mid || seam.rightStart <= seam.mid) {
+ throw new Error(`[x-grid] the headline crosses the seam (left ends ${seam.leftEnd}, right starts ${seam.rightStart}, seam ${seam.mid})`);
+ }
+ console.log(`[x-grid] headline ${parseInt(seam.fontSize, 10)}px, seam clears by ${Math.round(seam.mid - seam.leftEnd)}px / ${Math.round(seam.rightStart - seam.mid)}px`);
master = await page.screenshot({ type: 'png' });
} finally {
await browser.close();
}
+/**
+ * Two properties make this post read as one floating image rather than four
+ * rectangles, and both are easy to undo by accident with a colour tweak.
+ *
+ * - The outer border must be black. X's dark timeline is #000000; any lighter
+ * value there draws a visible box around the post.
+ * - The seams must be dim. The gutter between cells is pure black, so
+ * wherever the composition is brighter the gap shows as a line through it.
+ */
+async function assertBlendsIntoTimeline(png) {
+ const { data, info } = await sharp(png).raw().toBuffer({ resolveWithObject: true });
+ const { width, height, channels } = info;
+ const lum = (x, y) => {
+ const i = (y * width + x) * channels;
+ return Math.max(data[i], data[i + 1], data[i + 2]);
+ };
+
+ let border = 0;
+ for (let x = 0; x < width; x += 4) border = Math.max(border, lum(x, 0), lum(x, height - 1));
+ for (let y = 0; y < height; y += 4) border = Math.max(border, lum(0, y), lum(width - 1, y));
+ if (border > BORDER_MAX) {
+ throw new Error(
+ `[x-grid] the outer border reaches ${border}/255 (limit ${BORDER_MAX}); ` +
+ "it would draw a visible rectangle on X's black timeline",
+ );
+ }
+
+ let seam = 0;
+ for (let y = 0; y < height; y += 2) seam = Math.max(seam, lum(width / 2, y));
+ for (let x = 0; x < width; x += 2) seam = Math.max(seam, lum(x, height / 2));
+ if (seam > SEAM_MAX) {
+ throw new Error(
+ `[x-grid] the composition reaches ${seam}/255 on a seam (limit ${SEAM_MAX}); ` +
+ 'the collage gutter would cut a visible line through it',
+ );
+ }
+ console.log(`[x-grid] border ${border}/255, brightest seam pixel ${seam}/255`);
+}
+
+await assertBlendsIntoTimeline(master);
+
writeFileSync(path.join(OUT, '..', 'android-launch-master-16x9.png'), await sharp(master).removeAlpha().png({ compressionLevel: 9 }).toBuffer());
/* CoinMarketCap article covers are 640x360 (16:9), the master's own aspect, so the
* cover is the composition itself scaled down rather than a separate design. */
diff --git a/scripts/render-play-assets.mjs b/scripts/render-play-assets.mjs
index b3c595861..abdbbb6c8 100644
--- a/scripts/render-play-assets.mjs
+++ b/scripts/render-play-assets.mjs
@@ -36,7 +36,12 @@ const args = Object.fromEntries(process.argv.slice(2).map((a) => {
const m = a.match(/^--([^=]+)(?:=(.*))?$/);
return m ? [m[1], m[2] ?? true] : [a, true];
}));
-const OUT_DIR = args.out ? resolve(String(args.out)) : join(PUBLIC, 'brand/play');
+/* Two destinations on purpose. The developer-page artwork is brand material and
+ lives with the other marks; the store-listing artwork lives beside the listing
+ worksheet, under the exact filenames publish-play/config.yaml names, so the
+ worksheet never points at a file that does not exist. */
+const BRAND_DIR = args.out ? resolve(String(args.out)) : join(PUBLIC, 'brand/play');
+const LISTING_DIR = args.out ? resolve(String(args.out)) : join(ROOT, 'solana-mobile/publish-play/media');
/** Play's stated ceiling for both slots. */
const MAX_BYTES = 1024 * 1024;
@@ -47,7 +52,8 @@ const GROUND = '#000000';
const ICON_INSET = 0.82;
const SOURCE_MARK = join(PUBLIC, 'pwa-512x512.png');
-mkdirSync(OUT_DIR, { recursive: true });
+mkdirSync(BRAND_DIR, { recursive: true });
+mkdirSync(LISTING_DIR, { recursive: true });
/** Flatten onto the brand ground and drop the alpha channel Play refuses. */
async function toOpaquePng(pipeline) {
@@ -78,7 +84,7 @@ const [header] = await renderWordmarks([
{ width: 4096, height: 2304, bg: GROUND, fg: '#ffffff' },
]);
await assertPlayReady('header image', header.buffer, 4096, 2304);
-written.push(['three-ws-play-header-4096x2304.png', header.buffer, `wordmark ink ${header.ink.width}x${header.ink.height}, centred`]);
+written.push([BRAND_DIR, 'three-ws-play-header-4096x2304.png', header.buffer, `wordmark ink ${header.ink.width}x${header.ink.height}, centred`]);
/* Developer icon: the shipped app mark, inset for the circular crop. */
const inner = Math.round(512 * ICON_INSET);
@@ -91,7 +97,7 @@ const icon = await toOpaquePng(
}]).png(),
);
await assertPlayReady('developer icon', icon, 512, 512);
-written.push(['three-ws-play-developer-icon-512x512.png', icon, `mark inset to ${Math.round(ICON_INSET * 100)}% for the circular crop`]);
+written.push([BRAND_DIR, 'three-ws-play-developer-icon-512x512.png', icon, `mark inset to ${Math.round(ICON_INSET * 100)}% for the circular crop`]);
/* App icon for the store listing. Same artwork as the dApp Store slot: the
shipped mark flattened onto the brand ground. Play draws this one with its
@@ -99,7 +105,7 @@ written.push(['three-ws-play-developer-icon-512x512.png', icon, `mark inset to $
developer icon gives up. */
const appIcon = await toOpaquePng(sharp(SOURCE_MARK).resize(512, 512));
await assertPlayReady('app icon', appIcon, 512, 512);
-written.push(['three-ws-play-app-icon-512x512.png', appIcon, 'shipped app mark on the brand ground']);
+written.push([LISTING_DIR, 'icon-512.png', appIcon, 'shipped app mark on the brand ground']);
/* Feature graphic. Play's own guidance is to keep screenshots and small text
out of this slot: it is scaled down hard in the store and cropped at the
@@ -127,10 +133,10 @@ const FEATURE_HTML = `
</div>`;
const feature = await renderPage(FEATURE_HTML, { width: 1024, height: 500 });
await assertPlayReady('feature graphic', feature, 1024, 500);
-written.push(['three-ws-play-feature-1024x500.png', feature, 'lockup and one line of copy, no small text']);
+written.push([LISTING_DIR, 'feature-1024x500.png', feature, 'lockup and one line of copy, no small text']);
-for (const [name, buffer, note] of written) {
- const out = join(OUT_DIR, name);
+for (const [dir, name, buffer, note] of written) {
+ const out = join(dir, name);
writeFileSync(out, buffer);
const meta = await sharp(out).metadata();
console.log(
diff --git a/public/brand/play/three-ws-play-feature-1024x500.png b/solana-mobile/publish-play/media/feature-1024x500.png
similarity index 100%
rename from public/brand/play/three-ws-play-feature-1024x500.png
rename to solana-mobile/publish-play/media/feature-1024x500.png
diff --git a/public/brand/play/three-ws-play-app-icon-512x512.png b/solana-mobile/publish-play/media/icon-512.png
similarity index 100%
rename from public/brand/play/three-ws-play-app-icon-512x512.png
rename to solana-mobile/publish-play/media/icon-512.png
diff --git a/solana-mobile/publish-play/media/phone/carousel.png b/solana-mobile/publish-play/media/phone/carousel.png
index 411374861..d5f0f18ac 100644
Binary files a/solana-mobile/publish-play/media/phone/carousel.png and b/solana-mobile/publish-play/media/phone/carousel.png differ
diff --git a/solana-mobile/publish-play/media/phone/raw/screen-1.png b/solana-mobile/publish-play/media/phone/raw/screen-1.png
new file mode 100644
index 000000000..0764a20a0
Binary files /dev/null and b/solana-mobile/publish-play/media/phone/raw/screen-1.png differ
diff --git a/solana-mobile/publish-play/media/phone/raw/screen-2.png b/solana-mobile/publish-play/media/phone/raw/screen-2.png
new file mode 100644
index 000000000..0c248d329
Binary files /dev/null and b/solana-mobile/publish-play/media/phone/raw/screen-2.png differ
diff --git a/solana-mobile/publish-play/media/phone/raw/screen-3.png b/solana-mobile/publish-play/media/phone/raw/screen-3.png
new file mode 100644
index 000000000..e76549c3f
Binary files /dev/null and b/solana-mobile/publish-play/media/phone/raw/screen-3.png differ
diff --git a/solana-mobile/publish-play/media/phone/raw/screen-4.png b/solana-mobile/publish-play/media/phone/raw/screen-4.png
new file mode 100644
index 000000000..8036b44ce
Binary files /dev/null and b/solana-mobile/publish-play/media/phone/raw/screen-4.png differ
diff --git a/solana-mobile/publish-play/media/phone/raw/screen-5.png b/solana-mobile/publish-play/media/phone/raw/screen-5.png
new file mode 100644
index 000000000..5621c6966
Binary files /dev/null and b/solana-mobile/publish-play/media/phone/raw/screen-5.png differ
diff --git a/solana-mobile/publish-play/media/phone/raw/seam-1.png b/solana-mobile/publish-play/media/phone/raw/seam-1.png
new file mode 100644
index 000000000..8fba57afd
Binary files /dev/null and b/solana-mobile/publish-play/media/phone/raw/seam-1.png differ
diff --git a/solana-mobile/publish-play/media/phone/raw/seam-2.png b/solana-mobile/publish-play/media/phone/raw/seam-2.png
new file mode 100644
index 000000000..25292c2f0
Binary files /dev/null and b/solana-mobile/publish-play/media/phone/raw/seam-2.png differ
diff --git a/solana-mobile/publish-play/media/phone/raw/seam-3.png b/solana-mobile/publish-play/media/phone/raw/seam-3.png
new file mode 100644
index 000000000..0773ccbe2
Binary files /dev/null and b/solana-mobile/publish-play/media/phone/raw/seam-3.png differ
diff --git a/solana-mobile/publish-play/media/phone/raw/seam-4.png b/solana-mobile/publish-play/media/phone/raw/seam-4.png
new file mode 100644
index 000000000..51218a96a
Binary files /dev/null and b/solana-mobile/publish-play/media/phone/raw/seam-4.png differ
diff --git a/solana-mobile/publish-play/media/phone/screen-2.png b/solana-mobile/publish-play/media/phone/screen-2.png
index b19125b77..240333220 100644
Binary files a/solana-mobile/publish-play/media/phone/screen-2.png and b/solana-mobile/publish-play/media/phone/screen-2.png differ
diff --git a/solana-mobile/publish-play/media/phone/screen-3.png b/solana-mobile/publish-play/media/phone/screen-3.png
index 217dc1abf..8c44e0e45 100644
Binary files a/solana-mobile/publish-play/media/phone/screen-3.png and b/solana-mobile/publish-play/media/phone/screen-3.png differ
diff --git a/solana-mobile/publish-play/media/phone/screen-4.png b/solana-mobile/publish-play/media/phone/screen-4.png
index 11ad40afe..b5c5da5f4 100644
Binary files a/solana-mobile/publish-play/media/phone/screen-4.png and b/solana-mobile/publish-play/media/phone/screen-4.png differ
diff --git a/solana-mobile/publish-play/media/phone/screen-5.png b/solana-mobile/publish-play/media/phone/screen-5.png
index a894c5c82..eb4704153 100644
Binary files a/solana-mobile/publish-play/media/phone/screen-5.png and b/solana-mobile/publish-play/media/phone/screen-5.png differ