PulseCore

Edition for PulseCore 8.6: the text of 29 November 2026, kept as it was. Play this version. The live text describes PulseCore 8.7.

Chapter 6

Galaxies and the Cosmic Web

This chapter brings into the game BPT Part 3.14 (Galaxies: the Wells and the Stars Around Them) and the parts of BPT Part 3.12 (Ripples, Spin, and the Whirling Disks) that make a disk, with the swarm of data that BPT Part 2.9 (Gas, Stars, and the Stellar Road to the Null Well) wraps round every forming cluster of stars. Part 3.14 says what a galaxy is: a halo gathered round its well, its stars the ones that well pulls hardest, with satellites sinking toward the deepest heart. It says how its type is read (the blue cloud of star-forming disks and the red sequence of quiet spheroids), how a disk raises its own arms (Shear Rate, Epicyclic Frequency, Arm Number, Arm Pitch Angle), how wide it settles (Disk Size) and how fast it turns (Disk Turn Rate), and it makes a prediction the game can score: wells are born where the Proto Wells stood (Site Lift). Part 3.12 gives the order of events: a random field of ripples grows a tangled web, tidal torques spin the clumps, and cooling gas keeps its spin and settles into a whirling disk.

The arc is this. In the theory, matter condensed at the Physical Nova falls into the web, gathers round the wells and the sites, forms stars, and settles into galaxies of a few kinds, each turning at a rate set by when it formed, fed by cold streams along the filaments. In the game, the matter is a field of drawn bodies moving under their own gravity on the torus (Chapter 5); nothing in it is labeled a galaxy. Every four Pulses the game reads the galaxies out of that field: it gives each body to the well that pulls it hardest, finds the satellites, reads each galaxy's type from its young blue stars, measures its rotation curve and asks the book's laws for its arms and pitch, sizes it by its halo's spin, and turns it by the Disk Turn Rate. What the player watches, in the 3D view of the torus, is that reading drawn: from the big bang on, star-forming spirals with blue-white arms on warm cores, gold lenticulars, orange ellipticals and patchy blue irregulars gather round their wells, each star wheeling on its own orbit, streams of blue stars falling in along the filaments toward the largest, and the web itself glowing on the torus's skin as clusters where filaments cross and dim voids between.

A note on the field. The field is 4·2^Lm cells a side, Lm the model level: 6 on a desktop (256 × 256 cells), 4 on a phone (64 × 64). Every size in this chapter is in cells of that field, every time in flips, and every mass in the drawn units of matter.js unless it says Suns.

Part 6.1: From a Field of Bodies to Galaxies

BPT Part 3.14 (The Game's Reading) states the method this chapter documents: "A galaxy in the game holds tens of bodies, not the hundred thousand arms need ... So, as cosmological simulations do, its inner structure is drawn by the known laws from what the simulation measures in it: from the mass round its well, its rotation curve, and from that its shear rate, epicyclic frequency, disk surface density, its number of arms (Arm Number) and their pitch (Arm Pitch Angle); the disk itself turns by the Disk Turn Rate on a flat curve, each star on its own orbit, the arms' pattern with it, in the galaxy's own sense." The simulation decides where each galaxy is, which bodies and stars are its own, its mass, gas, metals, young share, turning sense, the mass profile round its well, and how it moves. The laws decide its arms, pitch, disk scale length, turning rate and inner layout, from the numbers the simulation measured.

The reading runs in a fixed order, once two steps of pulseCounter (one Pulse, GAL_EVERY) have passed since the last, from the Physical Nova on (from v8.6, 14 November 2026; before, every 8 steps by the step's own number, which the paced mode's later wells tick seldom met, Part 6.11): measureFeeding() app.js:793, which stepWells() app.js:818 calls each step, calls updateGalaxies() app.js:3130 at app.js:816.

  1. The index. galaxyIndex() app.js:2956 bins all bodies, gives each body to the well that pulls it hardest, measures each well's halo reach, makes every well inside a heavier halo that halo's satellite, and reads the knee of the galaxy mass function. (Part 6.2.)
  2. Each galaxy read once. galaxyOf() app.js:3000 reads, for every non-stellar well, the bodies it owns: their mass, rotation, gas, metals and stars, its type, its disk, arms and pitch, its brightest kinds of star, and its true and drawn size. (Parts 6.3 to 6.5.)
  3. The wells fed, the sites sized and tested. Each well is fed from its galaxy's star formation (wells chapter); each site's halo and core radius are set by haloRadius() (Part 6.7); the waiting sites are tested for direct collapse (wells chapter).
  4. Star formation by heat. Each body's sfHeat and gal are set from its galaxy's heat (stars chapter); the literals sit in updateGalaxies() and are listed in Part 6.6.
  5. The list for the scene. Every galaxy with lit stars, not a cloud and not empty, goes on the list with its turn rate from diskTurnRate() (Part 6.6); each is enlarged toward its nearest neighbor (Part 6.5) and handed to setGalaxies() scene3d.js:483 (Part 6.8), which also lays out the streams (Part 6.9).

Each frame, placeGalaxies() scene3d.js:616 puts every galaxy point round its well's current place and turns it, and placeStreams() scene3d.js:598 moves the stream stars in.

Separately, at every life sample, sampleSites() app.js:1489 measures how much of the surface lies inside the sites' cores, for the Site Lift (Part 6.7), and the field drawing marks the web's dense places (Part 6.10).

Two things this code calls belong to other chapters and are only referenced here: the heat of a galaxy's gas and its star formation share (galaxyHeat in heat.js, the stars chapter) and the feeding and direct collapse of the wells (feedWellFromStars, testDirectCollapse, the wells chapter). Their literals in this code are listed where they sit.

What the player sees, in order. Before the Physical Nova (Harmonic 3, the big bang) there is no matter and no galaxy. From it, the 3D view of the torus fills with matter; the readings begin, and a galaxy is drawn round a well as soon as the bodies it owns hold living stars. In a universe too shallow for stars (below the star line) no galaxy is ever drawn, and the Language Block marks every galaxy line "skipped: no stars". Over the life the galaxies turn, grow, merge and change type as their stars age; when the universe returns to the Source the galaxies fade out with the rest of the scene, and in the full decay they are cleared once the matter is in (app.js:2681). After the return, a tap on a well opens the banner that names its galaxy (Part 6.3). All of this is drawn only in the 3D view ("3D · the torus" in the view menu); the 2D field view shows the data, not the galaxies.

The method, in plain steps:

every 8 flips, from the bodies of matter:
    give every body to the well that pulls it hardest (the galaxy index, Part 6.2)
    read each well's galaxy: its mass, its spin, its stars, its gas, its type (Part 6.3)
    measure its disk: rotation, shear, arms, pitch (Part 6.4); its size (Part 6.5)
    set its turn (Part 6.6), its site's sizes (Part 6.7), and hand the list to the scene to draw (Parts 6.8 to 6.10)

The code:

// public/game-v8.4/app.js:3130 updateGalaxies()
function updateGalaxies() {
    if (!rings || !matter || !matter.bodies || novaCount < U.PHYSICAL_LAYER) return;
    const top = rings.sources.filter((w) => !w.stellar).sort((a, b) => (b.mass || 0) - (a.mass || 0)), list = [], idx = galaxyIndex(top);
    /* ⚠️ WHERE GAS CAN FORM STARS (2026-10-28; book Part 3.12): each galaxy's gas forms stars at the share its heat allows (heat.js
       galaxyHeat: full while it cools faster than it falls, t⇓/t⊹ when not, none in a hot halo its feeding well keeps hot, less in a
       small galaxy after reionization); gas outside every galaxy, after reionization, is too warm to collapse. stars.js reads b.sfHeat. */
    const lf = physStart !== null && physLife ? (pulseCounter + subDone - physStart) / physLife : 0, field = lf >= 0.75 / 11.0 ? 0 : 1;
    for (const b of matter.bodies) { b.sfHeat = field; b.gal = null; }
    /* its winds' reach (stars.js, Wind Mass Loading; book Part 3.12, Winds): escape speed v_esc = v_c·√(2(1 + ln 10)) for gas at a tenth
       of the halo's reach (Halo Escape Speed), over light physical, and comoving in cells a flip; hot for its cooling time, at most the
       billion years a fountain takes to fall back (Oppenheimer et al. 2010) */
    const lightC = matter.light || lightCells(), aG = Math.max(1e-6, expansionA()), ESC = Math.sqrt(2 * (1 + Math.LN10));
    const gs = top.map((w) => galaxyOf(w, idx));   /* each galaxy read once a reading (it was read twice, 2026-10-28) */
    top.forEach((w, i) => { w._mdot = 0; if (w.heart) { heartNow(w); w._feed = null; w._lam = 0; } else w._lam = 0; const g = gs[i];   /* a heart banks its growth so far; a fresh feeding starts (or none, with no stars forming round it) */ if (!w.site && g && g.bodies && g.bodies.length) feedWellFromStars(w, g); });
    top.forEach((w, i) => { w.siteR = haloRadius(w, gs[i], 0.9); w.siteCore = haloRadius(w, gs[i], 0.5); });
    testDirectCollapse(top, gs);
    for (const b of matter.bodies) b.sfAcc = 0;   /* read once: the next reading counts afresh */
    for (let i = 0; i < top.length; i++) { const w = top[i], g = gs[i]; if (g && g.heat && g.bodies) { const besc = ESC * (g.heat.vc || 0) / 299792.458, gal = { r: w.r, c: w.c, vr: w.vr || 0, vc: w.vc || 0, besc, vesc: besc * lightC / aG, hot: Math.min(g.heat.tcool, 1e9 * 3.15576e7) / LIFE_S * (physLife || 0) };
            for (const b of g.bodies) { b.sfHeat = g.heat.f; b.gal = gal; } w._vHalo = besc / ESC * lightC / aG; }
        if (scene && scene.setGalaxies && g && g.alive > 0 && g.type !== 'cloud' && g.type !== 'none') list.push({ id: w.id, r: w.r, c: w.c, type: g.type, stars: g.alive, sense: g.sense, R: g.R, rd: g.drawRd, hideR: g.hideR, arms: g.arms, pitch: g.pitch, omega: diskTurnRate(w), gamma: 1, pop: g.pop, seed: w.id }); }
    /* ⚠️ GALAXIES DRAWN WHERE THEIR TURNING CAN BE SEEN (2026-10-29, the author; measured: drawn at a disk's true size a galaxy was about 5 px across
       at the default view, 300 stars in a dot): each is drawn nearly halfway to its nearest neighbour (0.45), never under its own size nor
       past 0.45 of the field's mean spacing between galaxies, its scale length with it (book Part 3.14: drawn enlarged, as the field is far coarser than any disk) */
    { const cap = 0.45 * Math.sqrt((rows * cols) / Math.max(1, list.length)); for (const g of list) {   /* the cap: 0.45 of the field's mean spacing between galaxies (2026-10-29; was 20 cells of 256) */ let nn = Infinity; for (const o of list) if (o !== g) { const d = Math.sqrt(wrapDist2(o.r, o.c, g.r, g.c)); if (d < nn) nn = d; }
        const R2 = Math.max(g.R, Math.min(cap, 0.45 * (Number.isFinite(nn) ? nn : 3 * cap))), k = R2 / Math.max(1e-6, g.R); g.R = R2; if (Number.isFinite(g.rd)) g.rd *= k; } }
    if (scene && scene.setGalaxies) scene.setGalaxies(list);
    for (const g of list) routinesSeen.add('galaxy:' + g.type);
    if (matter.stars && matter.stars.byType && matter.stars.byType.giants) routinesSeen.add('giants');
}

Part 6.2: Whose Stars Are Whose: the Galaxy Index

The BPT law

BPT Part 3.14 says a galaxy is a halo gathered round a well, and it defines which stars are a galaxy's own. In How the Type Is Read: "Each galaxy's stars are the bodies its well pulls hardest, so neighbours' stars are not counted in it." In The Count, and the Wells Unseen: "Most sites are not a galaxy's heart. A galaxy is a halo, and one halo gathers many: the deepest at its centre, the others satellites sinking toward it by dynamical friction (Chandrasekhar, 1943), with their stars, gas and wells, and many small halos never light a galaxy at all (Sawala et al., 2016)." The same part places a dwarf against the galaxies round it, not against the universe: "Galaxy masses follow the Schechter function, φ(M) ∝ (M/M)^α e^(−M/M), many small galaxies and a knee M above which they grow rare ... The game reads its own knee from its galaxies: for α ≈ −1.2 the mass-weighted mean galaxy is (α + 2) M = 0.8 M, so M is 1.25 times that mean, and a galaxy below a fiftieth of M* is a dwarf."

So the law has three pieces: ownership by strongest pull, satellites inside heavier halos, and a knee read from the universe's own galaxies, M* = 1.25 × the mass-weighted mean galaxy. BPT does not state the galaxy's reach (one sixteenth of the field) or the softened pull G·M/(d² + 1); they are game methods.

The established physics

  • Galaxy masses follow the Schechter function φ(M) ∝ (M/M)^α·e^(−M/M) (Schechter 1976, An analytic expression for the luminosity function for galaxies); for α ≈ −1.2 the mass-weighted mean is (α + 2)·M*. The knee near 4.6 × 10¹⁰ Suns and dwarfs under about 10⁹ Suns, about a fiftieth of it, are from Baldry et al. 2012 (GAMA, the galaxy stellar mass function at z < 0.06).
  • A satellite halo inside a heavier one sinks to its center by dynamical friction (Chandrasekhar 1943, as BPT Part 3.14 cites it); many small halos hold no galaxy (Sawala et al. 2016, The APOSTLE simulations).
  • Exactness check: with φ(M) ∝ M^α·e^(−M/M), ∫M²φ dM / ∫Mφ dM = M·Γ(α + 3)/Γ(α + 2) = (α + 2)·M. At α = −1.2 that is 0.8·M, so M* = 1.25 × the mass-weighted mean, as the code uses.

The game's math

galaxyIndex(wells) app.js:2956.

Reach and bins (app.js:2957–2962). The reach of a galaxy is

R = max(3, min(rows, cols) / 16)    cells

16 cells on a desktop (256 / 16), 4 on a phone (max(3, 64 / 16)). The bodies are binned in nr × nc bins, nr = max(1, ⌊rows / R⌋), so each bin is at least R wide and a body's 3 × 3 neighboring bins hold every body within R of it, round the torus. Mall is the total drawn mass.

Ownership (app.js:2966–2972). The non-data, non-stellar wells are binned the same way. For each body b, among the wells in its 3 × 3 bins with periodic distance d ≤ R:

pull p = max(1, M_w) / (d² + 1)        owner(b) = the well with the greatest p

G is common to every well and left out. The +1 in the denominator softens the pull inside one cell, so a body sitting on a well does not divide by zero.

Halo reach (app.js:2981–2983). For each well, its members are sorted by distance; s = Σm; the halo reach r_h is the distance at which the running sum first reaches 0.9·s (the radius holding nine tenths of its members' mass). The halo mass is M_h = M_w + s.

Hosts and satellites (app.js:2983–2993). Halos are sorted heaviest first. Those with r_h > 0 are binned with bins S = max(1, min(min(rows, cols)/2, max r_h)) wide. For each halo x, the code looks through its 3 × 3 bins for the heaviest halo y with M_y > M_x, y not itself a satellite, and periodic distance from x to y less than r_y; if found, x is y's satellite. Then every body owned by a satellite is handed to its host (app.js:2993). A satellite well therefore owns no bodies.

The knee (app.js:2997). With M_g the summed body mass each owning well now holds:

M* = 1.25 · Σ M_g² / Σ M_g

The index returns Mall, the owner map, the knee, the host map, and a near(r, c) lookup over the body bins.

Example: on a desktop, R = 16 cells; the comment at app.js:2963 records wells "about 14 cells apart", so before ownership a galaxy read from every body within 16 cells took in its neighbors' stars. With ownership a body halfway between two equal wells goes to the nearer; a body 10 cells from a well of mass 100 (p = 100/101 ≈ 0.99) and 4 cells from a well of mass 10 (p = 10/17 ≈ 0.59) goes to the heavier, farther one.

The method, in plain steps:

reach R ← max(3, side / 16) cells
each body belongs to the well within R that pulls it hardest:  M / (d² + 1)
each well's halo reach ← the radius holding 0.9 of its bodies' mass;  halo mass ← well + bodies
a halo inside a heavier halo's reach is its satellite: its bodies go to the host
the knee M* ← 1.25 · Σ M² / Σ M

The code:

// public/game-v8.4/app.js:2956 galaxyIndex()
function galaxyIndex(wells = null) {
    const B = matter && matter.bodies ? matter.bodies : [], R = Math.max(3, Math.min(rows, cols) / 16), nr = Math.max(1, Math.floor(rows / R)), nc = Math.max(1, Math.floor(cols / R));
    const cells = Array.from({ length: nr * nc }, () => []), cell = (r, c) => ((((Math.floor(r / rows * nr)) % nr) + nr) % nr) * nc + ((((Math.floor(c / cols * nc)) % nc) + nc) % nc);
    let Mall = 0; for (const b of B) { Mall += b.m || 0; cells[cell(b.r, b.c)].push(b); }
    const near = (r, c, grid) => { const a0 = Math.floor(r / rows * nr), c0 = Math.floor(c / cols * nc), seen = new Set(), out = [];
        for (let i = -1; i <= 1; i++) for (let j = -1; j <= 1; j++) { const k = ((((a0 + i) % nr) + nr) % nr) * nc + ((((c0 + j) % nc) + nc) % nc); if (seen.has(k)) continue; seen.add(k); for (const b of grid[k]) out.push(b); }
        return out; };
    /* ⚠️ A GALAXY'S STARS ARE THE ONES ITS WELL HOLDS (2026-10-28): wells stand about 14 cells apart and a galaxy was read from
       every body within 16, so each reading took in its neighbours' stars and their motion, dragging its rotation down. Each
       body now belongs to the well that pulls it hardest, G·M/(d² + 1), among the wells within reach. */
    let owner = null;
    if (wells && wells.length) {
        const wcells = Array.from({ length: nr * nc }, () => []); for (const w of wells) if (!w.data && !w.stellar) wcells[cell(w.r, w.c)].push(w);
        const wd = (x, y, n) => { let d = x - y; if (d > n / 2) d -= n; if (d < -n / 2) d += n; return d; };
        owner = new Map();
        for (const b of B) { let best = null, bp = 0; for (const w of near(b.r, b.c, wcells)) { const dr = wd(b.r, w.r, rows), dc = wd(b.c, w.c, cols), d2 = dr * dr + dc * dc; if (d2 > R * R) continue; const p = Math.max(1, w.mass || 1) / (d2 + 1); if (p > bp) { bp = p; best = w; } } if (best) owner.set(b, best); }
    }
    /* ⚠️ A GALAXY IS A HALO, NOT A WELL (2026-10-28, the author: "yes, that sounds perfect ... go ahead"; book Part 3.14, Wells and
       Galaxies): the wells law counts every well, the Proto Wells and the stellar ones, and most Proto Wells are not galaxies'
       hearts; as in a real universe, where most halos hold no galaxy of their own, a well inside a heavier well's halo is its
       satellite, sinking by dynamical friction, and its stars and gas are its host's galaxy. A halo's reach is the radius holding
       nine tenths of its members' mass; a well is a satellite of the heaviest halo whose reach it lies within (measured at half a
       level 25 life: 160 of 314 wells). */
    const host = new Map(), wd = (x, y, n) => { let d = x - y; if (d > n / 2) d -= n; if (d < -n / 2) d += n; return d; };
    if (owner) {
        const mem = new Map(); for (const [b, w] of owner) { let e = mem.get(w); if (!e) mem.set(w, e = []); e.push([Math.hypot(wd(b.r, w.r, rows), wd(b.c, w.c, cols)), b.m || 0]); }
        const halo = []; for (const w of wells) { if (w.data || w.stellar) continue; const e = (mem.get(w) || []).sort((x, y) => x[0] - y[0]); let s = 0; for (const [, m] of e) s += m; let acc = 0, rh = 0; for (const [d, m] of e) { acc += m; if (acc >= 0.9 * s) { rh = d; break; } } halo.push({ w, M: (w.mass || 0) + s, rh }); }
        halo.sort((x, y) => y.M - x.M);
        /* the hosts by bins as wide as the widest reach (2026-10-29: every halo against every heavier one was 10⁸ pairs with 15,000 sites at
           level 202); only a halo with members has a reach, and a halo is tested heaviest first, as before */
        { const Hs = halo.filter((h) => h.rh > 0), S = Math.max(1, Math.min(Math.min(rows, cols) / 2, Hs.reduce((a, h) => Math.max(a, h.rh), 0))), nr = Math.max(1, Math.floor(rows / S)), nc = Math.max(1, Math.floor(cols / S)), key = (i, j) => (((i % nr) + nr) % nr) * nc + (((j % nc) + nc) % nc), bins = new Map();
          const bi = (w) => Math.floor((((w.r % rows) + rows) % rows) / rows * nr), bj = (w) => Math.floor((((w.c % cols) + cols) % cols) / cols * nc);
          for (const h of Hs) { const k = key(bi(h.w), bj(h.w)); (bins.get(k) || bins.set(k, []).get(k)).push(h); }
          for (const x of halo) { const i0 = bi(x.w), j0 = bj(x.w), seen = new Set(); let best = null;
            for (let a = -1; a <= 1; a++) for (let e = -1; e <= 1; e++) { const k = key(i0 + a, j0 + e); if (seen.has(k)) continue; seen.add(k); const l = bins.get(k); if (!l) continue;
                for (const y of l) { if (y === x || !(y.M > x.M) || host.has(y.w) || (best && best.M >= y.M)) continue; if (Math.hypot(wd(x.w.r, y.w.r, rows), wd(x.w.c, y.w.c, cols)) < y.rh) best = y; } }
            if (best) host.set(x.w, best.w); } }
        for (const [b, w] of owner) { const h = host.get(w); if (h) owner.set(b, h); }
    }
    /* the knee of the galaxy mass function, M* = 1.25 × the mass-weighted mean galaxy (Schechter 1976, α ≈ −1.2; book Part 3.14):
       a dwarf is below a fiftieth of it (Baldry et al. 2012: dwarfs under ~10⁹ Suns, the knee ~4.6 × 10¹⁰) */
    let knee = 0; if (owner) { const mg = new Map(); for (const [b, w] of owner) mg.set(w, (mg.get(w) || 0) + (b.m || 0)); let s1 = 0, s2 = 0; for (const v of mg.values()) { s1 += v; s2 += v * v; } knee = s1 > 0 ? 1.25 * s2 / s1 : 0; }
    return { Mall, owner, knee, host, near(r, c) { return near(r, c, cells); } };
}

In the game

The index itself draws nothing; what the player sees is its result. Each galaxy's points are laid out round the well that owns its bodies, so two neighboring galaxies are drawn as two, each round its own heart, and a satellite well has no galaxy drawn round it. In the 3D view a satellite is one of the dark wells: "a dark well, a satellite or one with no galaxy ... keep their place (a tap still finds them) but draw no ring" (setWells() comment, scene3d.js:1501–1504). A galaxy's own heart is drawn as a small mark at its center, a third of the usual mark, unless it feeds as a Seyfert or quasar (scene3d.js:1472–1476).

After the universe returns to the Source, the banner reads "Tap a well to dive in". A tap anywhere in a galaxy picks its well: "a tap anywhere in a galaxy picks its well, the heavier the nearer it counts, a galaxy's central well over the small" (pickWell() comment, scene3d.js:1429–1430). Tapping a satellite opens the banner with the line galaxyOf() returns for it (app.js:3016): "a satellite well inside the halo of …, sinking toward its heart · its stars and gas are that galaxy's", the host named by its well label. Tapping a well whose halo has gathered nothing shows "no galaxy gathered here yet" (app.js:3017).

The scale model

Exact: no scale model in the ownership, halo and host tests, which compare drawn masses and drawn distances, and are ratios that do not change when every drawn mass is multiplied by the same starMult. The knee is read in drawn mass and is used only against drawn mass, so it too is scale-free. The reach R is a fixed share of the field, the same at every level and every mass: the largest distance at which any body can belong to any galaxy.

Where the game and the theory differ

  • BPT gives each body to the well that pulls it hardest, with no distance stated. The game considers only wells within the reach R = max(3, min(rows, cols)/16), so a body farther than R from every well belongs to no galaxy, and the reach is a share of the field, not a law.
  • The pull is softened as G·M/(d² + 1) and a massless well pulls as one of mass 1. BPT states neither; both are numerical methods.

Fixed numbers

Number Where What it is Kind
3 app.js:2957 least reach of a galaxy, cells CAP
16 app.js:2957 reach = 1/16 of the field's shorter side CAP
1 app.js:2957 least bin count, max(1, ⌊rows/R⌋) METHOD (at least one bin)
−1…1 app.js:2961, 2953 the 3 × 3 bin search METHOD (bins at least R wide hold every neighbor)
1 app.js:2971 max(1, M_w): a massless well still pulls METHOD
1 app.js:2971 +1 in d² + 1, softening inside one cell METHOD (avoids a divide by zero at d = 0)
0.9 app.js:2982 halo reach = radius holding nine tenths of members' mass BPT (Part 3.14, Galaxies: the Wells and the Stars Around Them)
1/2 app.js:2986 host bins no wider than half the field METHOD (keeps at least two bins a side)
1 app.js:2986 least host bin width, cells METHOD
1.25 app.js:2997 M* = 1.25 × mass-weighted mean galaxy PHYSICS (Schechter 1976, α ≈ −1.2; BPT Part 3.14)

Measured

The comment at app.js:2973–2978 (2026-10-28) records: "measured at half a level 25 life: 160 of 314 wells" were satellites. The comment at app.js:2984 (2026-10-29) records that testing every halo against every heavier one "was 10⁸ pairs with 15,000 sites at level 202", which is why the host test is binned.

Part 6.3: Reading a Galaxy's Type

The BPT law

BPT Part 3.14 (How the Type Is Read) begins from the kinematic measure: "The shape of a galaxy is the share of its stars' motion that is orderly rotation. A disk turns together; an elliptical's stars swarm." Its law is the Rotation Fraction, κ_rot = K_φ / K, the share of the stars' kinetic energy in rotation about the axis: "Above about one half a galaxy is disk-dominated, a spiral or a lenticular; below it, spheroid-dominated, an elliptical." The book then lists the types the game reads, "spiral (rotating, forming stars), lenticular (rotating, quiet), elliptical (swarming), irregular (half-settled, κ_rot 0.3 to 0.5, or rich in gas, forming stars at the spiral rate), dwarf (small) and starburst (forming stars fast)", and says how the game reads them: "Its field is far coarser than any disk, so the game cannot measure a galaxy's turning from its matter, and it reads the type by the measure it can trust, its star formation, as the sky divides: the blue cloud of galaxies still forming stars are disks, spirals, or starbursts when they form fast; the red sequence of quenched ones are spheroids, ellipticals above the knee of the galaxy masses and lenticulars below it."

The lines come from the measured star formation rates, turned into a share of young stars: "a star of two Suns lives about 1.8 billion years ... so the share of a galaxy's stars still above two Suns, set against that share in a newborn population (2.5% under the Kroupa mass function), is the share of its stars formed within one such lifetime. Multiplying each rate by that lifetime gives its line: below about 2% of the newborn share a galaxy is quiet, near 10% it forms stars as a spiral does, and above about 45% it is a starburst. A long-lived disk like ours holds only about one star in six hundred above two Suns, about 6% of the newborn share, and reads as forming stars, as it should." And "a galaxy below a fiftieth of M* is a dwarf." BPT Part 3.14 (The Game's Reading) adds that "a central well that accretes fast lights as a quasar ... and a weaker one as a Seyfert glow", and Eddington Luminosity sets the lines: a Seyfert from a hundredth of the Eddington rate, a quasar from a tenth.

The established physics

  • Rotation fraction κ_rot (Sales et al. 2012, The origin of discs and spheroids in simulated galaxies).
  • The blue cloud and red sequence (Strateva et al. 2001, Color separation of galaxy types in the SDSS; Wuyts et al. 2011, Galaxy structure and mode of star formation).
  • Quenched below a specific star formation rate of 10⁻¹¹ per year (Wetzel, Tinker & Conroy 2012); main-sequence spirals near 10^−10.2 per year (Speagle et al. 2014, as the code comment cites it); starbursts at 4 times that or more (Rodighiero et al. 2011, as the code comment cites it).
  • The newborn share above two Suns from the Kroupa mass function (Kroupa 2001, On the variation of the initial mass function); the two-Sun lifetime of about 1.8 Gyr from lifetime ∝ M^−2.5, as BPT Part 3.14 states.
  • The dwarf line from Baldry et al. 2012.
  • Seyferts and quasars by Eddington ratio (Eddington 1926; Seyfert 1943, as BPT Part 3.14 cites them).

The arithmetic of the lines: 10⁻¹¹ /yr × 1.8 × 10⁹ yr = 0.018 ≈ 0.02; 10^−10.2 /yr = 6.3 × 10⁻¹¹ /yr, × 1.8 × 10⁹ yr = 0.114 ≈ 0.1; four times that is 0.45.

The game's math

galaxyOf(w, idx) app.js:3000. The reach R is the same max(3, min(rows, cols)/16) (app.js:3002).

The sums (app.js:3005–3015). Over the bodies in the well's bins that it owns, at periodic offset (dr, dc), distance d with 10⁻⁶ < d ≤ R, and velocity relative to the well (vr, vc):

v_φ = (dr·vc − dc·vr) / d                 the motion round the well
M   = Σ m          K_φ = Σ m·v_φ²          K = Σ m·(vr² + vc²)
L_z = Σ m·(dr·vc − dc·vr)                 sense = sign(L_z)
gas = Σ b.gas      zm = Σ b.zm            n = members
alive = Σ n_s over living star groups     blue = Σ n_s for groups of m ≥ 2 Suns, not giants

The cases before a type (app.js:3016–3032): no members and a host: "satellite"; no members: "no galaxy gathered here yet"; members but no living stars: "a cloud of gas gathering round its well".

The shares (app.js:3033–3034):

κ_rot = K_φ / K        bl = blue / alive        f_gas = gas / M        share = M / Mall
young = bl / BLUE_AT_BIRTH
forming = (young ≥ 0.02) or (f_gas > 0.3)

BLUE_AT_BIRTH (app.js:2953) is computed once at load: the share of 4000 evenly spaced quantiles of the IMF, sampleIMF((i + 0.5)/4000, false), at 2 Suns or more. BPT Part 3.14 gives it as 2.5%.

The type (app.js:3041–3047), in order:

if (knee > 0 ? M < 0.02·knee : share < 0.004)   dwarf irregular if forming, else dwarf spheroidal
else if young ≥ 0.45                             starburst
else if forming                                  spiral
else if knee = 0 or M < knee                     lenticular (S0)
else                                             elliptical

The feeding tag (app.js:3048): Eddington ratio w.edd ≥ 0.1 adds "a quasar", ≥ 0.01 "a Seyfert".

The text (app.js:3065) shows the type, the tag, the arms and pitch for spirals and starbursts, the heat, κ_rot to two decimals, the stars alive × starMult, and the young blue share as a percent.

Example: BPT Part 3.14 gives our galaxy about one star in six hundred above two Suns, bl ≈ 0.0016. Then young = 0.0016 / 0.025 = 0.064 ≥ 0.02, so it is forming; 0.064 < 0.45, so it is not a starburst; if its mass is at least a fiftieth of the knee, it reads as a spiral.

The method, in plain steps:

over the bodies a well owns:
    κ_rot ← (motion round the well)² / (all motion)²
    young ← (blue stars of 2 Suns or more / stars alive) / 2.5%
    forming ← young ≥ 0.02, or gas is more than 30% of the mass
its type, in order:
    lighter than a fiftieth of the knee → dwarf irregular if forming, else dwarf spheroidal
    young ≥ 0.45 → starburst;  forming → spiral
    lighter than the knee → lenticular;  otherwise → elliptical
its well feeding at ≥ 0.1 Eddington → "a quasar", ≥ 0.01 → "a Seyfert"

The code:

// public/game-v8.4/app.js:3033
const kap = K > 0 ? Kp / K : 0, bl = alive ? blue / alive : 0, gs = M ? gas / M : 0, share = Mall ? M / Mall : 0, mult = (matter.starMult || 1);
const young = BLUE_AT_BIRTH > 0 ? bl / BLUE_AT_BIRTH : 0, forming = young >= YOUNG_QUIET || gs > 0.3;

// public/game-v8.4/app.js:3041
if (knee ? M < DWARF_OF_KNEE * knee : share < 0.004) type = forming ? 'dwarf irregular' : 'dwarf spheroidal';
else if (young >= YOUNG_BURST) type = 'starburst';
else if (forming) type = 'spiral';
else if (!knee || M < knee) type = 'lenticular (S0)';
/* below about one half a galaxy is spheroid-dominated, an elliptical (book Part 3.14; Sales et al. 2012): a lenticular is a disk,
   so it needs κ_rot ≥ ½ too (2026-10-28; it was read for 0.3–0.5). Unsettled and forming stars at today's steady rate: irregular */
else type = 'elliptical';
const act = (w.edd || 0) >= 0.1 ? ' · a quasar' : (w.edd || 0) >= 0.01 ? ' · a Seyfert' : '';

In the game

The type is what the player sees first in a galaxy, because the scene draws each type in its own shape and its own color (Part 6.8). The comment at scene3d.js:534–536 names them: "a spiral's arms blue-white on a warm core, an elliptical yellow-orange, a lenticular pale gold, an irregular patchy blue". A spiral and a starburst show arms; a lenticular a smooth disk and a larger bulge; an elliptical or a dwarf spheroidal a round, slightly flattened swarm that barely turns; a dwarf irregular four clumps. As a galaxy's young stars die it can pass from the blue cloud to the red sequence: at the next reading (every four Pulses) a spiral whose young share falls under the quiet line is redrawn as a lenticular or, above the knee, an elliptical, and its arms are gone.

The type is named in words in the dive banner. After the universe returns to the Source, a tap on a well opens a banner headed by the well's name, with the title "Next Universe – Level … · generation …" and, below it, the galaxy's line from app.js:3065 (diveWell() app.js:3172–3173), for example:

spiral galaxy · a Seyfert · 2 arms, pitch 22° · <heat mode> · T_vir … K · metals … of the Sun's · κ_rot 0.41 · … stars, 3% young and blue

(the numbers vary; the form is the code's). A well whose bodies hold gas but no lit star reads "a cloud of gas gathering round its well, no stars lit yet", with "· feeding the well" when its Eddington ratio is a hundredth or more (app.js:3032). The line ends with "tap the well again to dive in".

Every type the reading produced in the life is recorded: updateGalaxies() adds 'galaxy:' + type to the routines seen (app.js:3156), and the Language Block, opened by the "✎ Language Block" button on the run card, lists "spiral galaxies", "lenticular (S0) galaxies" and "elliptical galaxies" always, and the other types once they appear, each marked as running or not (universeRoutines() app.js:2238, app.js:2256). The run record carries the same list, so a child universe's Language Block marks each type "inherited", "NEW" or "lost" against its parent's (app.js:2273).

The scale model

Exact: no scale model in the shares. κ_rot, bl, f_gas and the share of the universe are ratios of drawn quantities, unchanged when every drawn star stands for starMult stars. The star count shown is alive × starMult, the real count at the true level. The young share is a ratio of star counts in each drawn population, so a drawn galaxy's population stands for its real one star kind by star kind.

Where the game and the theory differ

  • BPT says the types come from "κ_rot and the share of young blue stars together", and BPT Part 3.14 (The Game's Reading) says "a selected galaxy is named by its type, read from its stars' rotation fraction and their colour." Since 2026-10-29 (comment app.js:3036–3039) κ_rot is computed and shown but sets no type; the type comes from the young share alone. The comment at app.js:3045–3046 still describes κ_rot ≥ ½ for a lenticular and a κ_rot band for irregulars; neither is in the code.
  • BPT lists "irregular (half-settled, κ_rot 0.3 to 0.5, or rich in gas, forming stars at the spiral rate)". No branch returns "irregular" or "dwarf elliptical", though both are in GALAXY_TYPES (app.js:2237), the list the Language Block shows. Irregular disks appear only as "dwarf irregular".
  • BPT puts a spiral "near 10%" of the newborn share. YOUNG_MAIN = 0.1 (app.js:2954) is defined and never used: the spiral line is "forming", which starts at 0.02, not at 0.1.
  • The gas share 0.3 and the fallback share 0.004 (used only before a knee exists) are not in BPT and carry no source in the code.

Fixed numbers

Number Where What it is Kind
2 app.js:2953, 2974 Suns: the "young blue" line, a two-Sun star living about 1.8 Gyr BPT (Part 3.14, What separates forming stars from quiet)
4000 app.js:2953 quantiles of the IMF used to compute BLUE_AT_BIRTH METHOD (numerical quadrature; error under 0.03%)
0.5 app.js:2953 quantile midpoints (i + 0.5)/N METHOD (midpoint rule)
0.02 app.js:2954 YOUNG_QUIET: quenched line, 10⁻¹¹/yr × 1.8 Gyr PHYSICS (Wetzel, Tinker & Conroy 2012)
0.1 app.js:2954 YOUNG_MAIN: spiral rate line; unused PHYSICS (Speagle et al. 2014)
0.45 app.js:2954 YOUNG_BURST: starburst line PHYSICS (Rodighiero et al. 2011)
0.02 app.js:2954 DWARF_OF_KNEE: a dwarf is under 1/50 of M* PHYSICS (Baldry et al. 2012)
1e-6 app.js:3008 least distance counted (the well itself is skipped) METHOD (avoids dividing by d = 0)
0.3 app.js:3034 gas share above which a galaxy counts as forming METHOD (a classification cut; no source given)
0.004 app.js:3041 dwarf line as a share of all mass when no knee exists METHOD (a fallback cut; no source given)
0.1 app.js:3048 Eddington ratio above which a feeding well is "a quasar" METHOD (conventional cut; no source given)
0.01 app.js:3048 Eddington ratio above which it is "a Seyfert" METHOD (conventional cut; no source given)
0.019 app.js:3031 the Sun's metal mass fraction, for "of the Sun's" PHYSICS (solar metallicity as the code takes it)
0.01 app.js:3031 metals under a hundredth of the Sun's read "none yet" DISPLAY
2 app.js:3031, 3028 significant figures and decimals in the text DISPLAY
100 app.js:3065 young share shown as a percent DISPLAY
3 app.js:2256 the first three galaxy types always listed on the end card RECORD

Part 6.4: The Disk Measured: Rotation Curve, Shear, Arms and Pitch

The BPT law

BPT Part 3.14 (Spiral Arms) opens: "No one places a galaxy's arms. A disk turns faster near its centre than at its edge, so any clump in it is sheared into a trailing streak; while it shears, the disk's own gravity pulls more stars and gas into it, and for a moment the streak grows many times over before it winds away. This is swing amplification ... Three numbers, all set by how the disk turns and how heavy it is, decide what the arms look like." The three are laws of the book:

Shear Rate              Γ = (R / Ω) · (Ω_drop / R_step)
Epicyclic Frequency     κ_ep = Ω · √(2 · (2 − Γ))
Arm Number              m_a = κ_ep² · R / (4 · π · G · S_d)
Arm Pitch Angle         i_p = arctan((2 / 7) · √(4 − 2 · Γ) / Γ)

Γ is "0 for a disk turning as one, 1 for a flat rotation curve, 1.5 round a lone central mass"; κ_ep "is √2 Ω for a flat rotation curve and Ω round a lone central mass"; the arm number is read at "the radius where the arms are read, two disk scale lengths", where S_d is "the disk's surface density there", and "a heavy, self-gravitating disk grows two or three grand arms; a light disk in a heavy halo grows many short ones, flocculent." The pitch is "about 22° for a flat rotation curve, about 11° round a dominant central mass ... Observed spirals run from about 5° to 40°." The rotation curve itself is BPT Part 3.12 (Disk Rotation), v = √(G·M/R) with M the mass within R: "The inner parts of a disk turn faster in angle than the outer, so the disk shears; spiral arms form and wind in it, and stars form along them." And BPT Part 3.14 (The Game's Reading) says how the game uses them: its inner structure "is drawn by the known laws from what the simulation measures in it: from the mass round its well, its rotation curve, and from that its shear rate, epicyclic frequency, disk surface density, its number of arms (Arm Number) and their pitch (Arm Pitch Angle)."

The established physics

  • Swing amplification and the arm number from the critical wavelength (Toomre 1981, What amplifies the spirals?; Carlberg & Freedman 1985, Dissipative models of spiral galaxies).
  • The epicyclic frequency κ = Ω·√(2(2 − Γ)): √2·Ω on a flat curve, Ω round a point mass (Binney & Tremaine 2008, Galactic dynamics).
  • The pitch from the shear (Michikoshi & Kokubo 2014, as the code and BPT cite it): about 22° on a flat curve, 11° round a dominant central mass.
  • An exponential disk Σ(r) = Σ₀·e^(−r/R_d), Σ₀ = M/(2π·R_d²), has a mass-weighted mean radius of exactly 2·R_d (∫r²e^(−r)dr / ∫r·e^(−r)dr = 2), and its surface density at 2·R_d is Σ₀·e⁻².
  • Simulated disks need about a hundred thousand particles for arms to rise and last (Fujii et al. 2011); a game galaxy holds tens of bodies, so the arms are read, not grown.

The game's math

galaxyOf() app.js:3055–3062, using the member list mem = [(d, m)] gathered in Part 6.3.

G_k  = matter.G · matter.gk                       the near-field pull the game uses round a well
M_w  = max(1, w.mass)
R_d  = max(0.75, Σm·d / Σm / 2)                   (R/4 if the galaxy has no mass)       cells
M(<r) = M_w + Σ_{d<r} m
Ω(r) = √(G_k · M(<r) / r³)                        radians a flip
r₁ = R_d,  r₂ = min(R, 3·R_d)
Γ = clamp(−ln(Ω(r₂)/Ω(r₁)) / ln(r₂/r₁), 0.05, 1.95)   if r₂ > 1.2·r₁ and Ω(r₁) > 0, else 1.5
R_a = 2·R_d
κ_ep = Ω(R_a) · √(2·(2 − Γ))
S_d  = Σm · e⁻² / (2π·R_d²)
m_raw = κ_ep² · R_a / (4π · G_k · S_d)            (2 if G_k or S_d is zero)
arms = clamp(round(m_raw), 2, 8)
pitch = clamp(arctan((2/7)·√(4 − 2Γ)/Γ) in degrees, 5°, 45°)

Γ is the shear rate measured as the negative log slope of Ω between R_d and 3·R_d, the book's Ω_drop/R_step taken over a finite step. A lone central mass gives Ω ∝ r^−1.5, so Γ = 1.5, the default when the two radii are too close to measure a slope.

Example: on a flat curve, Γ = 1: κ_ep = √2·Ω, pitch = arctan((2/7)·√2) = arctan(0.404) = 22.0°. Round a well that dominates its disk, Γ = 1.5: pitch = arctan((2/7)·1/1.5) = arctan(0.190) = 10.8°. At the ends of the clamp, Γ = 1.95 gives 2.7°, raised to 5°; Γ = 0.05 gives 85°, lowered to 45°.

The brightest kinds of star (app.js:3011–3014, 3026). Each living star group adds n·L(m) to a bin keyed by its class, whether it is a giant, and round(2·log₂ m), a half-octave in mass; L(m) is luminosity() from stars.js (m^3.5). The bins are sorted by light and the brightest 14 are kept as pop. The scene draws a galaxy's points from these kinds in proportion to their light (Part 6.8), "so the few young blue stars light a forming disk's arms".

What reaches the scene. The arms, the pitch and pop are passed on. The measured Γ is not: the list in updateGalaxies() passes gamma: 1 (app.js:3149), a flat curve for the turning, and the turn rate is the law of Part 6.6, not Ω(R_a). galaxyOf() also returns omega = min(0.6, Ω(R_a)) (app.js:3072), which updateGalaxies() replaces with diskTurnRate(w).

The method, in plain steps:

scale length R_d ← half the bodies' mean distance (at least 0.75 cells)
Ω(r) ← √(G · M(<r) / r³)
shear Γ ← −(slope of ln Ω between R_d and 3 R_d), held to 0.05–1.95 (1.5 if too close to measure)
arms ← round(κ² · R / (4π · G · Σ)), held to 2–8,  κ the epicyclic rate at 2 R_d
pitch ← arctan((2/7) · √(4 − 2Γ) / Γ), held to 5°–45°

The code:

// public/game-v8.4/app.js:3055
const Gk = (matter.G || 0) * (matter.gk || 1), Mw = Math.max(1, w.mass || 1);
let sm = 0, smd = 0; for (const [d, m] of mem) { sm += m; smd += m * d; }
const rd = Math.max(0.75, sm > 0 ? smd / sm / 2 : R / 4), Menc = (r) => { let s = Mw; for (const [d, m] of mem) if (d < r) s += m; return s; };
const Om = (r) => (Gk > 0 ? Math.sqrt(Gk * Menc(r) / (r * r * r)) : 0), r1 = rd, r2 = Math.min(R, 3 * rd);
const gam = r2 > 1.2 * r1 && Om(r1) > 0 ? Math.min(1.95, Math.max(0.05, -Math.log(Om(r2) / Om(r1)) / Math.log(r2 / r1))) : 1.5;
const Ra = 2 * rd, kep = Om(Ra) * Math.sqrt(2 * (2 - gam)), Sd = sm * Math.exp(-2) / (2 * Math.PI * rd * rd);
const armsRaw = Gk > 0 && Sd > 0 ? kep * kep * Ra / (4 * Math.PI * Gk * Sd) : 2, arms = Math.max(2, Math.min(8, Math.round(armsRaw)));
const pitch = Math.max(5, Math.min(45, Math.atan((2 / 7) * Math.sqrt(4 - 2 * gam) / gam) * 180 / Math.PI));

In the game

The arms are the most visible thing the book's laws put on screen. A spiral or starburst is drawn with m_a arms of young blue-white stars wound at the measured pitch round a warm core (setGalaxies() scene3d.js:516–546): two grand arms on a heavy disk, more on a light one, tight round a dominant well, open on a flat curve. Arm stars are drawn 1.3 times larger and at full brightness, the rest of the disk at 0.85, so the arms read as lanes of light. The arms trail: their winding runs against the galaxy's turning sense (φ = −sense · cot(pitch) · ln(ρ/ρ₀)), the sense measured from the bodies' own angular momentum L_z.

The numbers are named in the dive banner after the return to the Source: for a spiral or a starburst the galaxy line carries "· 2 arms, pitch 22°" (the count and the rounded pitch, app.js:3064), so a player can read the law's answer for any galaxy they tap. The brightest kinds (pop) decide the colors the eye sees: a forming disk's points are mostly its few young blue stars, because they carry most of its light; a quiet one's are its giants and old dwarfs. As the readings repeat every four Pulses the arm count and pitch can change while the mass round the well changes; each change is redrawn at the next reading.

The scale model

The rotation curve is read from drawn bodies a cell or more across, so Ω(r), Γ, κ_ep and S_d are the drawn galaxy's. The arms are not simulated: the game takes the measured disk and asks the laws how many arms and what pitch a disk like it would raise. The arm count and the pitch are dimensionless and do not scale with starMult (G_k·S_d and κ_ep² scale together). A disk is never measured smaller than three quarters of a cell, whatever its real size.

Where the game and the theory differ

  • BPT gives the arm number and the pitch with no bounds beyond the observed range. The game holds the arm count to 2–8 and the pitch to 5°–45°; BPT gives the observed top of the pitch as about 40°, so the game allows 5° more.
  • The measured scale length has a floor of 0.75 cells, and a disk with no mass is given R_d = R/4; neither is in BPT.
  • BPT ties the turning of each star to the shear of the disk (Spiral Arms; Disk Turn Rate). The game measures Γ but does not pass it to the scene: the scene turns every galaxy on a flat curve, gamma 1 (app.js:3149). The comment at app.js:3054 still says "the pattern turning at Ω(2 R_d) a flip", and the one at scene3d.js:699 "at its disk's measured Ω(2 R_d)"; the code turns it by the Disk Turn Rate (Part 6.6). The returned omega, min(0.6, Ω(R_a)), is unused.
  • Only the 14 brightest kinds of star are kept for drawing; BPT draws "its stars ... its own population, by type", with no count stated.

Fixed numbers

Number Where What it is Kind
1 app.js:3055 max(1, w.mass): least well mass in the rotation curve METHOD (keeps Ω real for a massless well)
2 app.js:3057 mean radius of an exponential disk = 2·R_d PHYSICS (exponential disk, exact)
0.75 app.js:3057 least measured scale length, cells CAP
4 app.js:3057 R_d = R/4 when the galaxy has no mass METHOD (a placeholder; never drawn, as a massless galaxy has no stars)
3 app.js:3058 outer radius of the shear measure, 3·R_d BPT (Part 3.14: "the shear rate Γ between R_d and 3 R_d")
1.2 app.js:3059 least ratio r₂/r₁ for a slope to be measured METHOD (avoids a slope over too short a step)
0.05 app.js:3059 least Γ METHOD (keeps the pitch formula finite)
1.95 app.js:3059 greatest Γ METHOD (keeps √(2(2 − Γ)) and √(4 − 2Γ) real)
1.5 app.js:3059 Γ when no slope can be measured: a lone central mass PHYSICS (Keplerian Ω ∝ r^−1.5)
2 app.js:3060 arms read at R_a = 2·R_d BPT (Part 3.14, Arm Number: "two disk scale lengths")
2, 2 app.js:3060 κ_ep = Ω·√(2(2 − Γ)) PHYSICS (Binney & Tremaine 2008)
e⁻², 2π app.js:3060 exponential disk surface density at 2·R_d PHYSICS (exponential disk, exact)
4π app.js:3061 m_a = κ²R/(4πG·S_d) PHYSICS (Toomre 1981; Carlberg & Freedman 1985)
2 app.js:3061 arm number when it cannot be computed METHOD (a two-armed default)
2 app.js:3061 least arm number CAP
8 app.js:3061 greatest arm number CAP
2/7, 4, 2 app.js:3062 i_p = arctan((2/7)√(4 − 2Γ)/Γ) PHYSICS (Michikoshi & Kokubo 2014)
5 app.js:3062 least pitch, degrees PHYSICS (observed spirals from about 5°, BPT Part 3.14)
45 app.js:3062 greatest pitch, degrees CAP (BPT gives the observed top as about 40°)
14 app.js:3063 the brightest kinds of star kept for drawing CAP
2 app.js:3013 kinds binned by round(2·log₂ m), half-octaves in mass METHOD (a binning width)
0.6 app.js:3072 top on the returned omega; replaced before use CAP (dormant)

Part 6.5: How Big a Galaxy Is, and How Big It Is Drawn

The BPT law

BPT Part 3.12 and Part 3.14 state the Disk Size law, R⊘ = λ⟲ · R⊡ / √2: "A disk is as wide as its halo's spin allows", R⊘ the scale length of the disk, λ⟲ the halo's spin parameter, R⊡ the radius of the halo it settles in. "With λ⟲ ≈ 0.035 a disk is a few hundredths of its halo across, which is why disks are thin and small inside their great dark halos." Part 3.12 gives the reason: gas in a spinning clump "radiates its heat but keeps its angular momentum, turns faster as it contracts (Ω · R² kept), and settles in a disk R⊘ = λ⟲ R⊡ / √2, about R⊡/40 for λ⟲ ≈ 0.035. The disk is not drawn to scale." The spin parameter itself is the Halo Spin Parameter of Part 3.14, λ⟲ = J⟲ · E⊖^(1/2) / (G · M^(5/2)), "spread about 0.035 (Peebles, 1969; Bullock et al., 2001)." And Part 3.14 (How the Type Is Read) says how the game draws it: "a disk drawn at its true size would be a speck on that field, so each galaxy is drawn enlarged, nearly halfway to its nearest neighbour, its arms, its turning and its well at the heart of it in view."

The established physics

  • Disk scale length from conserved angular momentum, R_d = λ·R_h/√2 (Mo, Mao & White 1998, The formation of galactic discs).
  • Halo spin parameter spread about λ ≈ 0.035 (Bullock et al. 2001, A universal angular momentum profile for galactic halos).
  • An exponential disk holds 1 − (1 + x)·e^(−x) of its light within x scale lengths: at x = 4, 1 − 5e⁻⁴ = 0.908, the "nine tenths" the code cites.

The enlargement toward the nearest neighbor is a game method; no physics source applies to it.

The game's math

The true size (galaxyOf() app.js:3071–3072):

r_h   = radius holding 0.9 of the members' mass (R if never reached)
R_d,draw = max(0.05, 0.035 · r_h / √2)                  cells
R_draw   = max(DRAW_MIN, 4 · R_d,draw),  DRAW_MIN = 0.5  cells
hideR    = max(2, min(R, 4 · R_d))                      (R_d the measured one of Part 6.4)

Example: a halo with r_h = 8 cells gives R_d,draw = 0.035 × 8 / 1.414 = 0.198 cells and R_draw = 0.79 cells: under one cell, on a 256-cell field. The comment at app.js:3066–3070 (2026-10-28) records that galaxies were drawn to their whole reach before, 8 to 16 cells, "ten to twenty times too big".

hideR is passed to the scene but no scene code reads it: the scene hides a body's own star points inside the galaxy's drawn radius instead (inGalaxy() scene3d.js:690, Part 6.8).

The enlargement (updateGalaxies() app.js:3153–3154). With n galaxies on the list and nn the periodic distance from a galaxy to its nearest other galaxy:

R_max = 0.45 · √(rows·cols / max(1, n))                 0.45 of the mean spacing between galaxies
R₂  = max(R_draw, min(R_max, 0.45 · nn))                (0.45 · 3·R_max if it has no neighbor)
k   = R₂ / R_draw;   R_draw ← R₂;   R_d,draw ← k · R_d,draw

So the drawn ratio R_draw / R_d,draw stays 4 (or more where DRAW_MIN applied), and the galaxy is drawn nearly halfway to its nearest neighbor, at most 0.45 of the field's mean spacing and never smaller than its true size.

Example: a desktop field, 256 × 256, with 100 galaxies: mean spacing √(65,536/100) = 25.6 cells, R_max = 11.5 cells. The galaxy above, with a neighbor 14 cells away, is drawn at min(11.5, 6.3) = 6.3 cells, an enlargement of 6.3 / 0.79 = 8.0. A lone galaxy (nn = ∞) is drawn at R_max.

The method, in plain steps:

true size: halo reach r_h (0.9 of the mass); scale length ← 0.035 · r_h / √2;  drawn radius ← 4 scale lengths
then enlarged for the eye: nearly halfway to its nearest galaxy, at most 0.45 of the mean spacing,
never smaller than its true size, its shape kept

The code:

// public/game-v8.4/app.js:3071
...(() => { const ms = mem.slice().sort((x, y) => x[0] - y[0]); let acc = 0, rh = R; for (const [d, m] of ms) { acc += m; if (acc >= 0.9 * sm) { rh = d; break; } }
    const dRd = Math.max(0.05, 0.035 * rh / Math.SQRT2); return { R: Math.max(DRAW_MIN, 4 * dRd), drawRd: dRd, hideR: Math.max(2, Math.min(R, 4 * rd)), rh }; })(), rd, gamma: gam, arms, armsRaw, pitch, omega: Math.min(0.6, Om(Ra)), pop };

// public/game-v8.4/app.js:3153
{ const cap = 0.45 * Math.sqrt((rows * cols) / Math.max(1, list.length)); for (const g of list) {   /* the cap: 0.45 of the field's mean spacing between galaxies (2026-10-29; was 20 cells of 256) */ let nn = Infinity; for (const o of list) if (o !== g) { const d = Math.sqrt(wrapDist2(o.r, o.c, g.r, g.c)); if (d < nn) nn = d; }
    const R2 = Math.max(g.R, Math.min(cap, 0.45 * (Number.isFinite(nn) ? nn : 3 * cap))), k = R2 / Math.max(1e-6, g.R); g.R = R2; if (Number.isFinite(g.rd)) g.rd *= k; } }

In the game

What the player sees is the book's "drawn enlarged, nearly halfway to its nearest neighbour". Galaxies fill the torus side by side, each reaching about halfway to the next, so a crowded region shows many small galaxies and a lonely one a single wide one. The comment at app.js:3150–3152 (2026-10-29) records why: at its true size "a galaxy was about 5 px across at the default view, 300 stars in a dot". As galaxies merge or new ones light, the spacing changes and every galaxy is resized at the next reading.

The Zoom slider ("In 3D, how close the camera is", index.php:213) changes what the size shows. A galaxy's points scale with its drawn radius, size × clamp(R/8, 0.12, 1) (scene3d.js:533): "from afar a galaxy is a glow, near its stars (the shader keeps each at least 2.5 px)". In a deep universe every point is larger and brighter by standLight() (scene3d.js:684–688), 0.15 in size and 0.1 in brightness for each decade of stars a drawn star stands for, so at level 28 the stars are "nearly single, sharp points" and deeper "each is a cloud's or a galaxy's light".

The scale model

The true size is the law's, R_d = λ·r_h/√2, read from the drawn halo. The drawn size is set by the spacing of the galaxies, k = R₂ / R_true, typically several to twenty times the law. What one drawn galaxy stands for is one real galaxy, with its shape (R/R_d = 4, the arms, the pitch) kept and its size scaled up by k.

Where the game and the theory differ

  • BPT draws each galaxy "nearly halfway to its nearest neighbour". The game does that (0.45 of the distance) and adds a top of 0.45 of the field's mean spacing between galaxies, which BPT does not state; it decides the size of a lone galaxy and of any galaxy whose neighbor is far.
  • The true size has floors the law does not have: a drawn scale length of at least 0.05 cells and a drawn radius of at least DRAW_MIN = 0.5 cells.
  • hideR, with its floor of 2 cells, is computed and passed but no scene code reads it.

Fixed numbers

Number Where What it is Kind
0.9 app.js:3071 halo reach: radius holding nine tenths of members' mass BPT (Part 3.14, Disk Size: "R_h measured as the radius holding nine tenths")
0.035 app.js:3072 spin parameter λ PHYSICS (Bullock et al. 2001)
√2 app.js:3072 R_d = λ·R_h/√2 PHYSICS (Mo, Mao & White 1998)
0.05 app.js:3072 least drawn scale length, cells CAP
4 app.js:3072 drawn to four scale lengths PHYSICS (90.8% of an exponential disk's light)
0.5 app.js:2952 DRAW_MIN: least drawn radius, cells CAP
2 app.js:3072 least hideR, cells (unused by the scene) CAP (dormant)
4 app.js:3072 hideR to four measured scale lengths PHYSICS (as above)
0.45 app.js:3153 cap = 0.45 of the mean spacing between galaxies CAP
0.45 app.js:3154 drawn to 0.45 of the nearest neighbor's distance CAP
3 app.js:3154 a galaxy with no neighbor is treated as 3·cap from one METHOD (lets the cap decide)
1 app.js:3153 max(1, n) METHOD
1e-6 app.js:3154 least size in the ratio k METHOD

Part 6.6: The Reading Cycle and How Fast a Disk Turns

The BPT law

BPT Part 3.14 states the Disk Turn Rate:

Ω_d = √(Δ_v / 2) · H_f / (√2 · λ⟲)

"How fast a galaxy's disk turns, set by when it formed": Ω_d "the disk's angular speed at twice its scale length", Δ_v "the density its clump collapsed to, over the universe's mean, about 200", H_f "the expansion rate when the clump formed", λ⟲ "its spin parameter, about 0.035". The derivation is given in prose: a clump collapsed to about two hundred times the mean density turns at its edge at Ω = √(G·M/R³) = √(Δ/2)·H, and the disk settled inside at R_d = λ⟲·R/√2 on a flat rotation curve turns faster at twice its scale length by R/(2R_d). "Ω_d ≈ 202·H_f ... A disk turns as often as its universe gives it, whatever the universe's size: with H = 2/(3t), Ω_d·t_f ≈ 135, about 21 turns in the first doubling of its age after it forms. Inside a disk each star turns at its own rate on the flat curve, Ω(r) = Ω_d·(2R_d/r), faster within, so the disk shears round its well, while the arms' pattern turns as one (Spiral Arms)." The book then gives the game's reason: "The game cannot read this turning from its field, whose cells are far coarser than any disk: measured there, at level 133, the largest disk turned a thirtieth of a turn in its whole life. So it turns each galaxy by this law, from the moment its stars first gathered: each star on its own orbit, and the young stars of the arms with their pattern."

BPT does not state the reading cadence, the per-frame clamp, or the reduced turning of ellipticals and irregulars; they are game methods.

The established physics

  • A collapsed clump's mean density is about 178 times the background in spherical collapse (Gunn & Gott 1972) and 200 as simulations count it (Navarro, Frenk & White 1996, as BPT cites it), so an orbit at its edge turns at √(G·M/R³) = √(Δ/2)·H.
  • In a matter-dominated universe H = 2/(3t) (standard Friedmann result).
  • Disks settle at R_d = λ·R/√2 (Mo, Mao & White 1998) on flat rotation curves (Rubin & Ford 1970), so at 2·R_d the disk turns faster than the clump's edge by R/(2R_d) = 1/(√2·λ).
  • Differential rotation: on a flat curve each star turns at Ω ∝ 1/r and the disk shears (Binney & Tremaine 2008, ch. 6); a long-lived arm pattern turns as one (Lin & Shu 1964, On the spiral structure of disk galaxies).

The game's math

The cadence. updateGalaxies() runs when pulseCounter % 8 === 0 (app.js:816). Each run reads every galaxy once (app.js:3142).

The turn rate (diskTurnRate(w) app.js:2744–2748). t is the flips since the Physical Nova (physStart); the first time a well is put on the drawn list (a galaxy with lit stars), t is kept as t_f = w.galSince. Then: (Superseded 18 November 2026: t is the universe's present age, not frozen at t_f, and λ is each galaxy's own, log-normal about 0.035 (spinLambda); see Chapter 9, the galaxies' turn.)

Ω_d = √(200/2) · (2 / (3 · max(0.5, t_f))) / (√2 · 0.035)
    = 10 · H_f / 0.04950 ≈ 134.7 / t_f        radians a flip

Example: a galaxy whose stars first gathered 100 flips after the Physical Nova turns at 1.35 radians a flip at twice its scale length, one turn in 4.7 flips. One whose stars gathered at 1000 flips turns at 0.135, one turn in 47 flips.

Each star's rate (setGalaxies() scene3d.js:524–525), ρ its radius in cells:

Ω(ρ) = min(4·Ω_d, Ω_d · (max(ρ, 0.5·R_d) / (2·R_d))^(−γ)) · s₀      γ = 1 (flat)
s₀ = 1 for a disk, 0.5 for an irregular, 0.2 for an elliptical or spheroidal

This is the book's Ω(r) = Ω_d·(2R_d/r). Inside half a scale length the disk turns as a solid body. On a flat curve the solid core turns at (0.5/2)^−1 = 4·Ω_d, so the min(4·Ω_d, …) never binds while γ = 1.

Each frame (placeGalaxies() scene3d.js:628–639):

dt_ms = min(100, ms since the last frame)
running = a physics step within max(1500, 3·stepGap) ms
flips = running ? dt_ms · dtNow / max(16, stepGap) : 0
turn(ω) = clamp(ω · flips, −0.15, 0.15)            radians this frame

An arm point turns with the galaxy's pattern angle, advanced by turn(sense·Ω_d) (×0.2 for ellipticals and spheroidals, which have no arm points, so that factor has no effect). Every other point advances its own angle by turn(sense·Ω(ρ)).

The other literals in the reading (updateGalaxies() app.js:3136–3148), whose laws belong to the stars and wells chapters:

field = 0 if the life share ≥ 0.75/11.0 (reionization by 0.75 Gyr of an 11.0 Gyr life), else 1
ESC   = √(2·(1 + ln 10))                 escape speed over circular speed at a tenth of the halo's reach
β_esc = ESC · v_c / 299,792.458 km/s
hot   = min(t_cool, 10⁹ yr × 3.15576 × 10⁷ s/yr) / LIFE_S · physLife     flips
a     = max(10⁻⁶, expansionA())

The method, in plain steps:

read the galaxies every 8 flips
a disk's turn ← 134.7 / t_f radians a flip,  t_f the flips from the big bang to when its stars first gathered
each star turns at Ω_d · (2 R_d / ρ), solid inside half a scale length;
    irregulars at half that, ellipticals and spheroidals at a fifth
each frame: turn by that rate × the flips the frame stands for, at most 0.15 radians

The code:

// public/game-v8.4/app.js:2744 diskTurnRate()
function diskTurnRate(w) {
    const t = physStart === null ? 0 : Math.max(0, pulseCounter + subDone - physStart);
    if (!Number.isFinite(w.galSince)) w.galSince = t;
    return Math.sqrt(200 / 2) * (2 / (3 * Math.max(0.5, w.galSince))) / (Math.SQRT2 * 0.035);
}

In the game

This is the motion the player watches. Every galaxy turns in its own sense, the sense its bodies' angular momentum gave it, and each star on its own orbit: the inner stars lap the outer ones, so the old stars of the disk stream through the arms while the young arm stars ride the arms' pattern and the arms keep their shape (scene3d.js:518–523). Ellipticals and dwarf spheroidals barely turn (a fifth of the rate) and irregulars turn at half, so the eye can tell a swarm from a disk by its motion.

The turning follows when each galaxy's stars first gathered: galaxies that lit early, soon after the big bang, spin fast, and galaxies that light late in the life turn slowly, about 135 radians divided by their age at first light in flips. The galaxies turn at the physics' own pace: the Speed menu ("How fast pulses run": slider pace, paced, or max) and, at slider pace, the Pace slider change how many flips pass each second, and the galaxies turn faster or slower with them; Stop ("Pause the universe") halts them, since no flips pass while the physics is not stepping (scene3d.js:630). When the universe returns to the Source the turning ends with the scene's fade.

The readings that feed the picture come every four Pulses, so a galaxy's type, arms, size and place in the list change in steps at that rhythm, while its turning and its well's motion are smooth from frame to frame.

The scale model

The turning is not simulated. The comment at app.js:2739–2743 (2026-10-29) records that, read from the field, "the largest disk turned a thirtieth of a turn in its whole life". The law gives the real turn count: a disk turns as often as its universe gives it, Ω_d·t_f ≈ 135, about 21 turns in the first doubling of its age. Because Ω_d is proportional to 1/t_f, the turn count depends only on a ratio of times, so it is the same counted in flips as in years: the drawn disk turns as many times in its drawn life as the real one does. The drawn star's orbit stands for the orbits of the stars in its kind; their radii are the enlarged drawn radii of Part 6.5.

Where the game and the theory differ

  • The per-frame clamp binds often. At one flip a frame, turn = Ω_d, which reaches the 0.15 radian clamp for any galaxy with t_f below 134.7 / 0.15 ≈ 900 flips, and its inner stars, at up to 4·Ω_d, below 3600 flips. In those galaxies the drawn turning is 0.15 radians a frame, not the law's rate, and the inner and outer stars turn at the same clamped rate, so the shear BPT describes is not shown.
  • BPT turns every disk by the Disk Turn Rate. The game turns ellipticals and spheroidals at a fifth of it and irregulars at half, with no source; BPT says an elliptical's stars "orbit every way at once rather than in a disk" and gives no rate.
  • The reionization share 0.75/11.0 is the same value heat.js exports as REION_FRACTION (heat.js:38), written here a second time as a literal.

Fixed numbers

Number Where What it is Kind
8 app.js:816 galaxies read every 8 steps of pulseCounter METHOD (reading cadence; cost)
200 app.js:2747 Δ_v, collapsed density over the mean PHYSICS (Navarro, Frenk & White 1996; BPT Part 3.14)
2 app.js:2747 √(Δ_v/2) PHYSICS (Ω at the clump's edge)
2/3 app.js:2747 H = 2/(3t), matter era PHYSICS (Friedmann, matter dominated)
0.5 app.js:2747 least t_f, flips METHOD (avoids dividing by zero at the Physical Nova)
√2, 0.035 app.js:2747 R/(2R_d) = 1/(√2·λ) PHYSICS (Mo, Mao & White 1998; Bullock et al. 2001)
1 app.js:3149 γ, a flat rotation curve PHYSICS (Rubin & Ford 1970)
2 scene3d.js:524 rates referred to 2·R_d BPT (Part 3.14, Disk Turn Rate)
0.5 scene3d.js:525 solid-body core inside 0.5·R_d METHOD (keeps Ω finite at the center)
4 scene3d.js:525 greatest star rate, 4·Ω_d (never binds at γ = 1) METHOD (a guard)
0.2 scene3d.js:524 an elliptical's stars turn at a fifth DISPLAY (no source; motion shown only)
0.5 scene3d.js:524 an irregular's stars turn at half DISPLAY (no source; motion shown only)
0.2 scene3d.js:633 an elliptical's arm pattern at a fifth (no arm points: no effect) DISPLAY
100 scene3d.js:629 longest frame counted, ms METHOD (a stalled tab does not jump)
1500, 3 scene3d.js:630 physics counted as running within max(1500 ms, 3 steps) METHOD
16, 50 scene3d.js:630 least step gap, ms; step gap before one is measured METHOD
0.15 scene3d.js:631 greatest turn a frame, radians CAP
0.75/11.0 app.js:3136 reionization as a share of the life PHYSICS (z ≈ 7 by 0.75 Gyr; heat.js:38)
2, 10 app.js:3141 ESC = √(2(1 + ln 10)): escape speed at a tenth of the halo's reach BPT (Part 3.12, Halo Escape Speed)
299792.458 app.js:3147 light speed, km/s PHYSICS (exact, SI)
1e9 app.js:3147 a fountain's fall-back time, years PHYSICS (Oppenheimer et al. 2010, as the comment cites it)
3.15576e7 app.js:3147 seconds in a Julian year PHYSICS (exact)
1e-6 app.js:3141 least scale factor METHOD

Measured

Comment at app.js:2739–2743 (2026-10-29): "measured at level 133: the largest disk turned a thirtieth of a turn in its whole life", the reason the turning is set by the law.

Part 6.7: Sites, Their Sizes, and the Site Lift

The BPT law

BPT Part 3.14 (Proto Wells: Where Wells Will Form) makes each Proto Well a site: "Formed in the data before the physical layer, it is the deepest place of the Data Matter, the seed of a halo (Part 3.13), and at the Physical Nova it becomes a site: where the gas will gather, where the first stars will light, and where a well will be born. It is the data's prediction of where the wells of matter will form, as the peaks of the early density field are where halos collapse in standard cosmology (Bardeen, Bond, Kaiser & Szalay, 1986)." A well is born at a site by direct collapse early, or by its first dying star sinking to its heart. Then "the prediction scored. If the Proto Wells are where wells will form, wells are born inside sites far more often than chance":

Site Lift               Λ_s = N_in / (N_w · A_s)

"How much more often wells are born inside sites than by chance", with Λ_s "the lift: 1 is chance", N_in "wells born within a site's core, the radius holding half its matter", N_w "all wells born", and A_s "the share of the surface within the sites' cores"; "Read in every universe the game plays, with the share of sites holding their well over its life." The Game's Reading adds: "Every well born is tested for a site's core, and the Site Lift and the share of sites holding their well over the life go on the universe's record with each site's conditions and how and when its well was born." BPT Part 3.14 (Testable Predictions) states the prediction: "If the Proto Wells are where wells will form, wells are born inside sites far more often than chance", measured by Site Lift.

The established physics

That halos collapse at the peaks of the early density field is standard cosmology (Bardeen, Bond, Kaiser & Szalay 1986, as BPT Part 3.14 cites it). The lift itself is an enrichment ratio, a test of the theory's prediction against chance; no physics source gives it. A game method.

The game's math

A site's sizes (haloRadius(w, g, share) app.js:1409, set at app.js:3144 every reading). Over the galaxy's own bodies (Part 6.3), sorted by periodic distance from the well, the radius at which the running mass first reaches share × total, never under SITE_R_MIN = 1 cell (1 cell if it has no bodies):

siteR    = haloRadius(w, g, 0.9)      its halo
siteCore = haloRadius(w, g, 0.5)      its core

siteNear(r, c) app.js:1425 returns the waiting site nearest (r, c) whose siteR contains it, the site a dying star or a collapsing clump there fills (the filling itself is in the wells chapter).

Scoring every birth (scoreBirth(r, c) app.js:1483, called for every physical well born after the Physical Nova, app.js:1530). If any sites exist: N_w += 1; and if the birth lies within the siteCore of any well that was ever a site (waiting or filled), N_in += 1. A direct-collapse birth adds to both N_w and N_in in fillSite() app.js:1446, since it is born in its site by definition.

The surface share (sampleSites() app.js:1489, at each life sample, app.js:926). The sites S are every well with siteBorn set. A 96 × 96 grid of points is laid on the field at ((i + 0.5)·rows/96, (j + 0.5)·cols/96); the sites are binned by the widest core, Rm = max(1, min(min(rows, cols)/2, max siteCore)); a point is a hit if it lies inside any site's core. Then

area sample = hits / 9216
filled curve point = (life share, filled sites / all sites)     the last 200 kept

The record (siteRecord() app.js:1502):

A_s = mean of the area samples
Λ_s = (N_in / N_w) / A_s

with A_s to 4 decimals, Λ_s to 3, and the first 400 sites' entries.

Example: if the cores cover 461 of the 9216 points (A_s = 0.050) and 30 of 60 wells were born inside a core, Λ_s = 0.5 / 0.05 = 10: wells are born inside the sites ten times as often as chance.

The method, in plain steps:

a site's sizes, each reading: its halo (0.9 of its galaxy's mass) and its core (0.5), at least one cell
every well born after the big bang is scored: inside a site's core or not
the cores' share of the field, sampled on a 96 × 96 grid
the site lift Λ_s ← (share of wells born inside cores) / (cores' share of the field)

The code:

// public/game-v8.4/app.js:1409 haloRadius()
function haloRadius(w, g, share = 0.9) {
    if (!g || !g.bodies || !g.bodies.length) return SITE_R_MIN;
    const e = g.bodies.map((b) => { let dr = Math.abs(b.r - w.r) % rows, dc = Math.abs(b.c - w.c) % cols; dr = Math.min(dr, rows - dr); dc = Math.min(dc, cols - dc); return [Math.hypot(dr, dc), b.m || 0]; }).sort((x, y) => x[0] - y[0]);
    let tot = 0; for (const [, m] of e) tot += m; let acc = 0; for (const [d, m] of e) { acc += m; if (acc >= share * tot) return Math.max(SITE_R_MIN, d); }
    return SITE_R_MIN;
}

// public/game-v8.4/app.js:1483 scoreBirth()
function scoreBirth(r, c) {
    if (!rings || novaCount < U.PHYSICAL_LAYER || !siteStats.total) return;
    siteStats.born++;
    if (rings.sources.some(w => w.siteBorn !== undefined && wrapDist2(w.r, w.c, r, c) <= (w.siteCore || SITE_R_MIN) ** 2)) siteStats.inside++;   /* inside a site's core, where the data gathered most */
}

// public/game-v8.4/app.js:1502 siteRecord()
function siteRecord() {
    const s = siteStats; if (!s.total) return null;
    const area = s.area.length ? s.area.reduce((a, b) => a + b, 0) / s.area.length : null, lift = s.born && area ? (s.inside / s.born) / area : null;
    return { total: s.total, filled: { direct: s.direct || 0, remnant: s.remnant || 0, clump: s.clump || 0 }, waiting: rings ? rings.sources.filter(w => w.site).length : 0, unfilled_at_end: s.unfilledAtEnd,
        births_scored: s.born, born_inside: s.inside, area_share: area === null ? null : +area.toFixed(4), lift: lift === null ? null : +lift.toFixed(3), filled_curve: s.curve.slice(), sites: [...s.byId.values()].slice(0, 400) };
}

In the game

The sites themselves are not drawn: BPT Part 3.14 (The Game's Reading) says a site "is not counted, drawn, ranked or shining, and it swallows nothing", and the code keeps that. What the player sees of them is their work: the gas and the first stars gather round a site from the big bang on, and a galaxy is drawn round it (Part 6.2) before it has any well. When the site fills, by direct collapse or by its first stellar well sinking to its heart, a heart appears at the galaxy's center, drawn as the small mark of a galaxy's heart, and blazing if it feeds as a Seyfert or quasar (wells chapter).

The lift is not shown on screen. It is a number of the run record: runRecord() puts siteRecord() under sites (app.js:2219), with the sites' total, how many filled by direct collapse, by a remnant or by a clump, how many still wait, the births scored and born inside, the area share, the lift, the filled-share curve over the life and each site's entry. The record is saved at each nova and at the End of the Outward Expansion, and it travels in the exported packet ("Export .ud": "Download this universe as a .ud packet: its genesis, Pulsecore, record and lineage", index.php:261). So every universe a player runs scores the theory's prediction, whether or not they look.

The scale model

Exact: no scale model in the counts and the lift, which are ratios of counts and of areas. The area is sampled, not integrated: the grid points are rows/96 cells apart, 2.67 cells on a desktop and 0.67 on a phone.

Where the game and the theory differ

  • Two features of the count shift the lift upward and should be read with it: every direct-collapse birth is inside by construction, and the cores of sites already filled still count as targets for later births. BPT's N_in counts "wells born within a site's core" and says neither.
  • On a desktop a core under about one and a half cells across may fall between the sample points and read as no area, which would raise the lift.
  • A site's radius is never under SITE_R_MIN = 1 cell, and a site with no bodies is a point a cell across; BPT's core is "the radius holding half its matter" with no floor.

Fixed numbers

Number Where What it is Kind
1 app.js:1407 SITE_R_MIN: least site radius, cells CAP
0.9 app.js:3144 site halo: radius holding nine tenths of its matter BPT (Part 3.14, A Galaxy Is a Halo)
0.5 app.js:3144 site core: radius holding half its matter BPT (Part 3.14, Site Lift)
96 app.js:1492 96 × 96 points sample the surface share METHOD (sampling resolution)
0.5 app.js:1496 points at cell midpoints METHOD (midpoint rule)
1/2, 1 app.js:1494 site bins at least 1 and at most half the field wide METHOD
200 app.js:1500 filled-curve points kept RECORD
4 app.js:1500, 1506 decimals of the filled share and the area share RECORD
3 app.js:1506 decimals of the lift RECORD
400 app.js:1506 site entries kept in the record RECORD

Part 6.8: Drawing a Galaxy: Its Points, Its Layout, Its Light

The BPT law

BPT Part 3.14 (The Game's Reading) states how a galaxy is drawn: "Its stars are its own population, by type; the young blue ones lie on the arms, where they form, and the old ones in a smooth disk and bulge. So a spiral is an exponential disk with as many trailing logarithmic arms as its disk can raise, round a warm bulge; a lenticular as a smooth disk with a larger bulge; an elliptical as a round warm swarm; an irregular or a starburst as clumps." The Spiral Arms section gives the reason the young stars light the arms: "Gas passing through an arm is squeezed, shocks and forms stars there (Roberts, 1969), and the bright blue stars die within a few tens of millions of years, before they drift far, so the arms are lit by the young stars they make." And the stars are drawn as the same kinds anywhere: "Stars are drawn by type: blue-white giants bright and few in young clusters, red giants and supergiants large and orange, red dwarfs small and dim ..."

How many points a galaxy gets on a given device is not in BPT; it is a game method.

The established physics

  • Logarithmic trailing arms of a density wave, along which the young stars lie (Lin & Shu 1964).
  • An exponential disk: the radius of a point drawn as ρ = −R_d·ln u, u uniform, has the exponential surface density Σ ∝ e^(−ρ/R_d) (exact).
  • A logarithmic spiral of pitch i: φ = cot(i)·ln(ρ/ρ₀) (exact geometry).
  • Nothing in the layout of the bulge, the elliptical swarm or the irregular's clumps is taken from a source; those shapes are display choices.

The game's math

The device's points. sendOutMatter() app.js:1198 sets the scene's point count P = max(matterBudget(), 15,000), and matterBudget() is 8000 on a phone and 8000 to 16,000 on a desktop by its memory and cores (app.js:1176–1182; the matter chapter). The scene lowers P by a fifth when frames average over 45 ms across 3 s, while P > 8000 (scene3d.js:2003). The fallback is 30,000 if none was set.

The galaxies' share (setGalaxies(list) scene3d.js:483–496):

B_g = round(0.6 · P)
For spirals and starbursts, largest first by stars:
    full = 120 · max(1, arms)
    gets full while the arm galaxies' running total stays within 0.6 · B_g, else 40
least = clamp(⌊(B_g − arm points used) / (other galaxies)⌋, 12, 40)
count_i = max(arm or least floor, round(B_g · max(1, stars_i) / Σ stars))

The buffer is sized to ⌈1.3·n⌉ points so small changes do not reallocate it.

Example: a desktop at P = 16,000: B_g = 9600; the arm galaxies may take 5760 points at full, so the 24 largest two-armed spirals get 240 points each (about 2 × 120 on and between the arms), and every spiral after them 40. On a phone, P = max(8000, 15,000) = 15,000 and B_g = 9000.

Each point's star (scene3d.js:527–537). A kind is picked from pop (Part 6.4) in proportion to its light n·L. It is "young" if m ≥ 2 Suns, not a giant, not a white dwarf or neutron star. Its color and size come from starLook() (the stars chapter), then: size = (0.01 + 0.2·min(0.08, size))·clamp(R/8, 0.12, 1)·starSizeK, and its color is mixed 45 : 55 with its type's tint (spiral arm young [0.62, 0.78, 1], spiral other [1, 0.86, 0.62], elliptical [1, 0.76, 0.48], lenticular [0.98, 0.88, 0.66], irregular [0.66, 0.8, 1]), the star gain held under 1.6, times 0.85, and the size × 1.35.

Each point's place (scene3d.js:516, 528, 539–546), R the drawn radius and R_d its drawn scale length (Part 6.5), R_d at least 0.03 cells (0.28·R if missing), the pitch 18° if missing:

elliptical or spheroidal: ρ = min(R, 0.3·R·(−ln u)^1.5), φ uniform, flattened q = 0.75
irregular: 4 clumps at 0.55·R·√u, each point Gaussian about one, σ = 0.12·R
bulge (old stars, with chance 0.35 in a lenticular, 0.15 otherwise): ρ = min(0.4·R, −0.25·R_d·ln u)
disk: ρ = clamp(−R_d·ln u, 0.05·R, R)
   on an arm (spirals and starbursts, chance 0.85 if young, 0.2 if old):
   φ = −sense · cot(pitch) · ln(ρ / ρ₀) + 2πj/m + w·g,   ρ₀ = 0.5·R_d,  w = 0.35π/m,  g Gaussian
   otherwise φ uniform

Arm points (young stars on an arm) are drawn 1.3 times larger; all others at 0.85 brightness.

One set of stars (scene3d.js:553–555, 690–695, 727–730). The galaxies are binned in 16-cell bins; inGalaxy(r, c) is true inside any galaxy's drawn radius R. A body there has its star points drawn by the galaxy layer instead, and keeps only its gas and its white dwarfs and neutron stars. The cluster glows skip patches inside a galaxy (Part 6.10).

On the surface (scene3d.js:621–626). A column cell and a row cell have different lengths on the torus, so each galaxy's column offsets are scaled by the ratio of the two lengths at its center, at most cols/(4·max(1, R)), a quarter turn of the ring.

The method, in plain steps:

the galaxies get 60% of the device's points; spirals 120 points an arm while that lasts, others 12 to 40
each point is a kind of star drawn from the galaxy's brightest kinds in proportion to their light
its place: ellipticals a flattened cloud, irregulars four clumps,
           disks an exponential disk with a bulge, spirals along log-spiral arms at the pitch

The code:

// public/game-v8.4/scene3d.js:483 setGalaxies()
    setGalaxies(list) {
        this._galaxies = list || [];
        const budget = Math.round((this.pointBudget || 30000) * 0.6),   /* 60 % of the points (2026-10-29: the galaxies are where the stars are seen to gather and turn) */ tot = this._galaxies.reduce((a, g) => a + Math.max(1, g.stars), 0) || 1;
        /* every well's galaxy is drawn now (2026-10-28). A spiral's arms need points to be seen (the author, 2026-10-28: "give spirals priority";
           measured in the browser, 75 spirals at 40 points each showed no arms even close up): the largest spirals, by their stars, get
           240 points each (about 130 in the two arms) until they hold 60 % of the galaxies' share, as the large ones are those whose arms
           show from afar; smaller spirals keep 40; the rest share what is left, at least 40 each while they fit, never under 12. The
           galaxies' share of the device's points is 35 % (was 25 %). */
        const isArm = (g) => /spiral|starburst/.test(g.type), others = this._galaxies.filter((g) => !isArm(g)).length;
        const order = this._galaxies.map((g, i) => i).filter((i) => isArm(this._galaxies[i])).sort((x, y) => this._galaxies[y].stars - this._galaxies[x].stars);
        const armPts = new Map(); let armUsed = 0;
        for (const i of order) { const full = 120 * Math.max(1, this._galaxies[i].arms || 2), want = armUsed + full <= 0.6 * budget ? full : 40; armPts.set(i, want); armUsed += want; }   /* 120 points an arm, its own number of arms (2026-10-29; was 240 for any) */
        const least = Math.max(12, Math.min(40, Math.floor(Math.max(0, budget - armUsed) / Math.max(1, others))));
        const counts = this._galaxies.map((g, i) => Math.max(armPts.has(i) ? armPts.get(i) : least, Math.round(budget * Math.max(1, g.stars) / tot)));
        const n = counts.reduce((a, c) => a + c, 0);
        if (!n) { if (this.galPts) this.galPts.geometry.setDrawRange(0, 0); this.galN = 0; this.setStreams(); return; }
        if (!this.galPts || this.galPts.geometry.attributes.size.count < n) {
            if (this.galPts) { this.axisGroup.remove(this.galPts); this.galPts.geometry.dispose(); this.galPts.material.dispose(); }
            this.galPts = this.pointsOf(Math.ceil(n * 1.3));
        }
        const cap = this.galPts.geometry.attributes.size.count, col = this.galPts.geometry.attributes.color.array, sz = this.galPts.geometry.attributes.size.array;
        this.gRho = new Float32Array(cap); this.gPhi = new Float32Array(cap); this.gOm = new Float32Array(cap); this.gQ = new Float32Array(cap); this.gWell = new Array(cap); this.gArm = new Uint8Array(cap);
        if (!this.gAngOf) this.gAngOf = new Map();   /* each star's own orbital angle, kept by galaxy and index across redraws */
        let k = 0;
        for (let gi = 0; gi < this._galaxies.length; gi++) {
            const g = this._galaxies[gi], cnt = counts[gi];
            let h = ((g.seed || 1) * 2654435761) >>> 0;
            const rnd = () => { h = (h + 0x6D2B79F5) >>> 0; let t = h; t = Math.imul(t ^ (t >>> 15), t | 1); t ^= t + Math.imul(t ^ (t >>> 7), t | 61); return ((t ^ (t >>> 14)) >>> 0) / 4294967296; };
            const gauss = () => Math.sqrt(-2 * Math.log(Math.max(1e-9, rnd()))) * Math.cos(2 * Math.PI * rnd());
            /* ⚠️ ITS OWN DISK AND ITS OWN STARS (2026-10-28, the author; book Part 3.14, Spiral Arms and The Game's Reading): the disk's scale
…

In the game

This is the galaxy as the player sees it in the 3D view. A spiral is a blue-white pair (or more) of trailing arms on a warm gold-white disk round a small bright bulge; a lenticular is a pale gold disk with a larger bulge and no arms; an elliptical a round, slightly flattened yellow-orange swarm; a dwarf irregular four patchy blue clumps. Each point is a real kind of star of that galaxy, colored as that kind is colored everywhere in the game and then tinted toward its type, so types read apart at a glance: the comment at scene3d.js:534–536 (2026-10-29) records the ruling, "we cant see the different galaxy types clearly", that led to the tints. Inside a galaxy's drawn radius the body field's own star points give way to the galaxy's, so one set of stars is shown; the bodies' gas haze and their white dwarfs and neutron stars stay.

Galaxies are laid round the torus's curved surface so they stay round, not stretched, near the inner throat (scene3d.js:618–626). A galaxy's points follow its well as the well moves, so a galaxy drifts and merges with its well. The largest spirals carry the most points, which is why their arms show from afar; a small galaxy is a smaller sprinkle. On a slow device the scene draws fewer points after a few seconds of slow frames, so the same universe can look sparser on a phone. At the return to the Source the galaxy and stream points are hidden halfway through the fade and gone in the hollow torus that remains (scene3d.js:2032–2036).

The scale model

A drawn galaxy is one real galaxy (each drawn galaxy one galaxy, app.js:1405). Its points do not stand for a fixed number of stars: a galaxy of stars drawn stars, standing for stars × starMult real ones, gets count_i points, so one point stands for stars_i × starMult / count_i real stars. The points are a sample of its light, not of its number: a kind gets points by n·L, so a few blue giants get many. The layout is the law's (exponential disk, logarithmic arms at the measured pitch and number) at the enlarged drawn size; the bulge, the elliptical's swarm and the irregular's clumps are display.

Where the game and the theory differ

  • BPT draws "an irregular or a starburst as clumps". The code draws a starburst as a spiral, with arms (scene3d.js:517: spiral = /spiral|starburst/), unlike the book and the comment at scene3d.js:481–482.
  • The points each galaxy gets are a share of what the device can draw, not of the galaxy: the galaxies get 60% of the device's points, the largest spirals 120 points an arm until they hold 60% of that, later spirals 40, the others between 12 and 40 each. Because each count is the larger of its floor and its share, the total can exceed the galaxies' share when there are many galaxies, and the floors make the stars per point smaller for small galaxies and spirals than for large non-spirals. BPT states none of this.
  • The comment at scene3d.js:486–490 still describes 240 points for any spiral and "The galaxies' share of the device's points is 35 %"; the code gives 120 an arm and 60%. The comment at scene3d.js:479 still gives the pitch as 18°; the measured pitch is passed and 18° is only the fallback.
  • The scene lowers the device's points by a fifth on slow frames (to no less than 8000), so what is drawn depends on the device's speed during the run.

Fixed numbers

Number Where What it is Kind
15000 app.js:1198 least scene point budget, any device CAP
30000 scene3d.js:485, 571 point budget if none was set CAP
0.8 scene3d.js:2003 the budget lowered by a fifth on slow frames CAP
45 scene3d.js:2003 mean frame time that lowers the budget, ms CAP
3000 scene3d.js:2003 frame time summed before a check, ms METHOD
8000 scene3d.js:2003 the budget is never lowered from 8000 or less CAP
0.6 scene3d.js:485 galaxies get 60% of the points CAP
120 scene3d.js:494 points an arm for a full spiral CAP
2 scene3d.js:494, 516 arms if missing METHOD (two-armed default)
0.6 scene3d.js:494 full spirals take at most 60% of the galaxies' points CAP
40 scene3d.js:494 points for a spiral past that share CAP
12 scene3d.js:495 least points for any other galaxy CAP
40 scene3d.js:495 most "least" points for any other galaxy CAP
1 scene3d.js:485, 496 max(1, stars) METHOD
1.3 scene3d.js:501 buffer headroom METHOD (avoids reallocating)
0.03 scene3d.js:516 least drawn scale length, cells CAP
0.28 scene3d.js:516 R_d = 0.28·R if missing METHOD (a placeholder; R/R_d = 4 is always passed)
18 scene3d.js:516 pitch in degrees if missing METHOD (placeholder; the pitch is always passed)
0.5 scene3d.js:516 arms start at ρ₀ = 0.5·R_d DISPLAY
0.35π scene3d.js:516 arm width, radians, over m DISPLAY
4 scene3d.js:528 an irregular's clumps DISPLAY
0.55, 0.12 scene3d.js:528, 540 clump placement and spread, × R DISPLAY
0.3, 1.5 scene3d.js:539 an elliptical's radial profile DISPLAY
0.75 scene3d.js:539 an elliptical's flattening DISPLAY
0.35, 0.15 scene3d.js:541 bulge share of old stars, lenticular and other DISPLAY
0.4, 0.25 scene3d.js:541 bulge's outer limit (× R) and scale (× R_d) DISPLAY
0.05 scene3d.js:543 least disk radius, × R DISPLAY
0.85, 0.2 scene3d.js:544 chance of an arm, young and old stars DISPLAY
2 scene3d.js:531 Suns: "young" on the arms BPT (Part 3.14, as in Part 6.3)
0.01, 0.2, 0.08 scene3d.js:533 point size from the star's look DISPLAY
8, 0.12, 1 scene3d.js:533 point size scaled by R/8, between 0.12 and 1 DISPLAY
1.6 scene3d.js:537 greatest star gain in a galaxy DISPLAY
0.45, 0.55, 0.85 scene3d.js:538 star color against type tint, and dimming DISPLAY
tints scene3d.js:537 the five type colors DISPLAY
1.35 scene3d.js:538 galaxy points' size factor DISPLAY
1.3, 0.85 scene3d.js:547 arm points larger; others dimmer DISPLAY
[1, 0.95, 0.88], 0.016 scene3d.js:532 color and size when no kind is known DISPLAY
16 scene3d.js:553, 692 galaxy bins, cells METHOD (lookup speed)
256 scene3d.js:553, 692 field side if not yet known METHOD
4 scene3d.js:626 column stretch at most a quarter turn of the ring CAP

Measured

The comment at scene3d.js:486–490 (2026-10-28) records: "measured in the browser, 75 spirals at 40 points each showed no arms even close up", the reason spirals get their arm points first. The comment at scene3d.js:618–622 (2026-10-28) records that, "measured in the browser with the other layers hidden: the largest spirals were smears and streaks", the reason for the surface stretch.

Part 6.9: Streams Along the Filaments

The BPT law

BPT Part 3.14 (The Game's Reading): "Its matter does not arrive from nowhere: galaxies grow by cold streams falling in along the filaments of the cosmic web, which run between neighboring halos (Kereš et al., 2005; Dekel et al., 2009). So each of the largest galaxies draws two or three streams of stars, aimed along the filaments toward its nearest neighboring galaxies. Their stars fall inward from about halfway to each neighbour, curl into the galaxy's turning as they near it (keeping their angular momentum, they turn faster as they fall), and join the disk at its edge, while new stars start far out on the filament." BPT Part 3.12 gives the physics behind it: "Cold streams feed galaxies. Below about 10¹² Suns the infalling gas cools faster than it falls; it never heats to the virial temperature but flows in along the filaments, cold, and feeds the disk directly (Kereš et al., 2005; Dekel et al., 2009)." The conserved angular momentum is the same law Part 3.12 states for every collapse: "Angular momentum per mass, Ω·R², is kept. Gas falling to a tenth of its radius turns a hundred times faster."

The established physics

  • Galaxies gain much of their gas in cold streams along filaments (Kereš, Katz, Weinberg & Davé 2005, How do galaxies get their gas?; Dekel, Birnboim, Engel et al. 2009, Cold streams in early massive hot haloes as the main mode of galaxy formation).
  • Gas falling in keeps its specific angular momentum j = ρ²·Ω, so its angular speed grows as Ω ∝ 1/ρ² (exact for conserved j).

The game's math

setStreams() scene3d.js:570–597 and placeStreams(pos, flips) scene3d.js:598–615.

The points and the galaxies (scene3d.js:571–575):

B_s = round(0.08 · P)                          none if B_s < 50
big = the ⌊B_s / 42⌋ galaxies with the most stars (at least 1)
per = max(16, ⌊B_s / |big|⌋)  points each

42 is three filaments of 14 stars. Example: P = 16,000 gives B_s = 1280, the 30 largest galaxies, 42 points each. With only 5 galaxies, per = 256 each.

The filaments (scene3d.js:585–586). For each galaxy, the other galaxies are sorted by periodic distance; it takes the nearest 2, or 3 with chance one half, each as (distance d, bearing). A galaxy with no other galaxy gets two filaments in opposite random directions at d = 6·R.

Each stream star (scene3d.js:588–592), R the galaxy's drawn radius:

out = max(1.6·R, min(5·R, 0.5·d))      it starts from halfway to the neighbor, at most 5 R, at least 1.6 R
ρ   = R + u · (out − R)                start anywhere along the stream
offset across the filament = (u − 0.5) · 0.35 · R

Its fall and curl (scene3d.js:600–613), each frame, ω the galaxy's turn rate Ω_d (Part 6.6):

ρ ← ρ − min(0.05·R, flips · |ω| · out / (3 · 2π))        it falls the whole stream in three disk turns
φ_s ← φ_s + clamp(sense · |ω| · flips · (R / max(ρ, 0.5·R))², −0.1, 0.1)
if ρ ≤ R: ρ ← out, φ_s ← 0                              it joined the disk; a new star far out
curl = φ_s · min(1, (out − ρ)/(out − R))
bearing = filament bearing + curl;   the cross offset shrinks as ρ/out

The curl rate (R/ρ)² is the conserved-angular-momentum law, taking the turn rate at the disk's edge as ω.

The method, in plain steps:

8% of the points become streams, 42 a galaxy, for the largest galaxies
each galaxy takes 2 or 3 filaments toward its nearest galaxies
each stream star falls along its filament toward the disk in three disk turns,
curling faster as it nears, (R / ρ)², and starts again far out when it reaches the disk

The code:

// public/game-v8.4/scene3d.js:570 setStreams()
setStreams() {
    const gl = (this._galaxies || []).filter((g) => g.R > 0), budget = Math.round((this.pointBudget || 30000) * 0.08);
    if (!gl.length || budget < 50) { this.strN = 0; if (this.strPts) this.strPts.geometry.setDrawRange(0, 0); return; }
    const H = this.rows || 256, W = this.cols || 256, wrap = (d, L) => (d > L / 2 ? d - L : d < -L / 2 ? d + L : d);
    const big = gl.slice().sort((x, y) => (y.stars || 0) - (x.stars || 0)).slice(0, Math.max(1, Math.floor(budget / 42))), per = Math.max(16, Math.floor(budget / big.length));
    const n = per * big.length;
    if (!this.strPts || this.strPts.geometry.attributes.size.count < n) {
        if (this.strPts) { this.axisGroup.remove(this.strPts); this.strPts.geometry.dispose(); this.strPts.material.dispose(); }
        this.strPts = this.pointsOf(Math.ceil(n * 1.3));
    }
    const cap = this.strPts.geometry.attributes.size.count, col = this.strPts.geometry.attributes.color.array, sz = this.strPts.geometry.attributes.size.array;
    this.sG = new Array(cap); this.sB = new Float32Array(cap); this.sRho = new Float32Array(cap); this.sPh = new Float32Array(cap); this.sOut = new Float32Array(cap); this.sOff = new Float32Array(cap);
    let k = 0;
    for (const g of big) {
        const nb = gl.filter((o) => o !== g).map((o) => { const dr = wrap(o.r - g.r, H), dc = wrap(o.c - g.c, W); return [Math.hypot(dr, dc), Math.atan2(dr, dc)]; }).sort((x, y) => x[0] - y[0]);
        let h = ((g.seed || 1) * 40503 + 7) >>> 0; const rnd = () => { h = (Math.imul(h ^ (h >>> 15), 2246822519) + 0x9E3779B9) >>> 0; return h / 4294967296; };
        const fil = nb.length ? nb.slice(0, 2 + (rnd() < 0.5 ? 1 : 0)) : [[6 * g.R, 2 * Math.PI * rnd()], [6 * g.R, 2 * Math.PI * rnd() + Math.PI]];
        for (let i = 0; i < per && k < cap; i++, k++) {
            const f = fil[i % fil.length], out = Math.max(1.6 * g.R, Math.min(5 * g.R, 0.5 * f[0]));   /* from halfway to the neighbour, at most five disk radii */
            this.sG[k] = g; this.sB[k] = f[1]; this.sOut[k] = out; this.sOff[k] = (rnd() - 0.5) * 0.35 * g.R;   /* a filament has a width */
            this.sRho[k] = g.R + rnd() * (out - g.R); this.sPh[k] = 0;
            const c = [0.62, 0.78, 1].map((e) => e * (0.8 + 0.2 * rnd())); col[k * 3] = c[0]; col[k * 3 + 1] = c[1]; col[k * 3 + 2] = c[2];
            sz[k] = (0.016 + 0.008 * rnd()) * Math.min(1, Math.max(0.12, g.R / 8)) * 1.35 * (this.starSizeK || 1);
        }
    }
    this.strN = k; this.strPts.geometry.setDrawRange(0, k);
    this.strPts.geometry.attributes.color.needsUpdate = true; this.strPts.geometry.attributes.size.needsUpdate = true;
}

In the game

Round the largest galaxies the player sees thin lines of blue-white stars ([0.62, 0.78, 1], each a little dimmer or brighter, scene3d.js:591) reaching out two or three ways toward the nearest neighboring galaxies, from as far as halfway to them. Along each line the stars move inward, slowly far out, then swing round into the galaxy's own turning sense as they near its edge, faster and faster, and vanish into the disk, while new stars appear far out on the same line: a steady inflow along the web. A stream's width narrows as it nears the galaxy. The streams follow the galaxy as its well moves, and turn with the galaxy's own Disk Turn Rate, so an early, fast-turning galaxy pulls its streams in fast and curls them tightly, and a late one draws them in slowly. They stop when the physics is paused, as the galaxies do, and they are rebuilt at every reading, so a stream swings to a new neighbor when the nearest galaxy changes.

The scale model

Each stream star stands for nothing counted: it is a marker of matter falling along a filament, drawn in the inflow's direction toward the nearest drawn galaxies, at the enlarged galaxy size of Part 6.5. Its timing is in flips and follows the galaxy's law turn rate. The actual filaments of the simulation are in the body field and the starlight skin (Part 6.10 and the matter chapter).

Where the game and the theory differ

  • BPT's streams run "along the filaments of the cosmic web". The game does not trace the simulated filaments: it aims each stream at the nearest drawn galaxies, which is where BPT says the filaments run, but the line drawn is straight toward the neighbor, not the web's own path.
  • BPT gives "each of the largest galaxies" streams. Which galaxies count as largest is set by the device's points: the ⌊B_s/42⌋ galaxies with the most stars, 30 on a desktop at 16,000 points; none when the streams' share is under 50 points.
  • The fall takes three turns at the disk's rate; the comment at scene3d.js:604 says "about three outer orbits", and neither is from a source. The same comment says the turn grows "as R/ρ"; that is the speed, and the code's (R/ρ)² is the angular rate, which is the correct one for the angle.
  • Each frame a star falls at most 0.05·R and curls at most 0.1 radians, so on fast-turning galaxies the drawn fall and curl are slower than the stated law.
  • Whether a galaxy has two or three filaments is drawn at random with chance one half; BPT says "two or three streams" and gives no rule.

Fixed numbers

Number Where What it is Kind
0.08 scene3d.js:571 streams get 8% of the points CAP
50 scene3d.js:572 no streams under 50 points CAP
42 scene3d.js:574 points a galaxy: 3 filaments × 14 stars; sets how many galaxies get streams CAP
16 scene3d.js:574 least points a galaxy's streams CAP
1.3 scene3d.js:578 buffer headroom METHOD
2, 3, 0.5 scene3d.js:586 two filaments, a third with chance one half METHOD (BPT Part 3.14: "two or three streams"; no rule given)
6 scene3d.js:586 a lone galaxy's filaments at 6·R METHOD
0.5 scene3d.js:588 streams start halfway to the neighbor BPT (Part 3.14: "from about halfway to each neighbour")
5 scene3d.js:588 streams start at most 5 drawn radii out CAP
1.6 scene3d.js:588 streams start at least 1.6 drawn radii out CAP
0.35 scene3d.js:589 a filament's width, × R DISPLAY
[0.62, 0.78, 1], 0.8, 0.2 scene3d.js:591 stream star color and its spread DISPLAY
0.016, 0.008, 8, 0.12, 1.35 scene3d.js:592 stream star size DISPLAY
3 scene3d.js:605 the fall takes three disk turns METHOD (BPT: "about three outer orbits"; no source)
0.05 scene3d.js:605 greatest fall a frame, × R CAP
2 scene3d.js:606 curl rate ∝ (R/ρ)², conserved angular momentum PHYSICS (j = ρ²Ω conserved)
0.5 scene3d.js:606 curl rate held at ρ ≥ 0.5·R METHOD (finite near the center)
0.1 scene3d.js:606 greatest curl a frame, radians CAP
1e-6 scene3d.js:609 least denominator in the curl ramp METHOD

Part 6.10: The Web on the Field: Cluster Glows, Swirls, Patches and Voids

The BPT law

BPT Part 3.12 (The Character of the First Ripples) says what the web is: the ripples a universe begins with "are a random field: at every scale, waves of every direction with random phases", with the Primordial Ripple Spectrum Δ²(k) = A⊚ · (k / k⊚)^(n⊚ − 1), "nearly equally strong on every scale". "Because the phases are random, the web that grows from such ripples is a tangle of sheets, filaments and knots in every direction, the cosmic web of Bond, Kofman & Pogosyan (1996), and never a grid. In Binary Pulse Theory the ripples are the unevenness of the data on the scaffold (Part 3.6): the data falls on the lattice unevenly, cell by cell, and that unevenness is the random field; the lattice shapes it, as the dark matter shapes ours, but does not draw it." Its Game's Reading says the game's ripples are that random field, "so the web is a tangle that follows the lattice loosely". BPT Part 2.9 (Gas, Stars, and the Stellar Road to the Null Well), through its Data–Matter Equivalence N⚛ = m_H · 𝒞→² / (k_B · T · ln(2)), makes every particle "an enormous coherent swarm of data", and says what the game shows of it: "the data falls in toward the matter and turns about it as the matter turns, so that every forming cluster of stars, and not only every well, is wrapped in its own spiral of data." (This is the BPT part cited at app.js:825.)

BPT does not state how many clusters glow or swirl, the glow's reach, or the patch test; these are game methods. The game computes no clumping statistic of the web (no correlation function, no filament finder): the web is marked only by the measures below.

The established physics

  • The orbital speed round a mass falls as 1/√k with distance k (Kepler); the data brightens with it.
  • A void holds 10 to 20% of the mean density (Sheth & van de Weygaert 2004, A hierarchy of voids).
  • The web of sheets, filaments and knots grown from random-phase ripples (Bond, Kofman & Pogosyan 1996, as BPT Part 3.12 cites it).

The game's math

The cluster glow on the field (drawFieldTexture() app.js:336–347):

reach = max(2, min(24, ⌊min(rows, cols)/4⌋))       24 cells on a desktop, 16 on a phone
big = the 24 heaviest bodies of drawn mass m ≥ 16
for each, at k ≤ reach cells:  w = √(1/max(1, k)) · (1 − k/reach);  glow = max over clusters

The data's brightness under the stars is then intensity × (base + (CLUSTER_GLOW − base)·glow), CLUSTER_GLOW = 0.8, base 0.08 from the 4th harmonic on, 0.35 before (app.js:385).

The cluster swirls (stepWells() app.js:827–832): the same 24 heaviest bodies of m ≥ 16 are handed to the data dynamics (gravity.js) as swirl-only wells, turning the data round them at their Kepler rate √(G·M/k³) without swallowing it. The dynamics' cache is cleared past 40,000 entries.

The cluster patches (setMatter() scene3d.js:822–836, used only when the starlight skin is off): mass is summed in 8 × 8-cell patches; a patch above 2.5 times the mean patch mass, not inside a drawn galaxy, is a cluster, and glows with g = min(1, log₂(mass/mean)/4).

The void floor (scene3d.js:920–922, the starlight skin): every patch gets 12% of the mean star and gas weight added, "so the web reads as filaments in a dim sea".

The method, in plain steps:

the 24 heaviest clusters glow on the field out to 24 cells: w ← √(1/k) · (1 − k / reach)
the same 24 turn the data round them at their Kepler rate, swallowing none
patches above 2.5 times the mean mass glow as clusters; every patch keeps a 12% floor, so voids read as a dim sea

The code:

// public/game-v8.4/app.js:338
const reach = Math.max(2, Math.min(24, Math.floor(Math.min(rows, cols) / 4)));
const big = matter.bodies.filter((b) => b.m >= 16).sort((x, y) => y.m - x.m).slice(0, 24);
for (const b of big) {
    const br = Math.round(b.r), bc = Math.round(b.c);
    for (let dr = -reach; dr <= reach; dr++) for (let dc = -reach; dc <= reach; dc++) {
        const k = Math.hypot(dr, dc); if (k > reach) continue;
        const w = Math.sqrt(1 / Math.max(1, k)) * (1 - k / reach), j = (((br + dr) % rows + rows) % rows) * cols + (((bc + dc) % cols + cols) % cols);
        if (w > glow[j]) glow[j] = w;
    }

In the game

The web is narrated as it grows. Three toasts mark its stages by the scale factor a (app.js:670–673), each shown once in a life:

  • at a ≥ 0.25, "a quarter grown": "The universe is a quarter of its final size · the ripples are growing: the first clumps gather along the lattice's lines";
  • at a ≥ 0.5, "half grown": "Half its final size · filaments are forming along the scaffold, stars igniting in them", with the count of stars shining;
  • at a ≥ 0.9, "the web stands": "Nearly full size · the cosmic web stands on the scaffold: clusters where filaments cross, voids between", with the supernovae so far.

On the torus the player sees the web three ways. The starlight skin paints the light of all the stars each cell's bodies stand for, so a deep universe glows end to end along its filaments, with the 12% floor keeping the voids a dim sea rather than black; before the skin is first painted, the dense 8 × 8 patches glow as violet points instead. Under the stars, the data of the field is dark except round the heaviest clusters, where it brightens toward each one as its orbital speed does, and the same clusters turn the data round them: with Flow colours on (the default: "every new cell takes the colour of the data that lit it, so the spin, the flow and the wells' swirl show as moving colour", index.php:215) the data is seen to spiral round the heaviest clumps of matter as it does round the wells, the "spiral of data" BPT Part 2.9 describes. All of this is in the 3D view; the glow under the stars is drawn only while the scene draws the matter as stars.

The scale model

The glow, the swirl and the patches mark drawn bodies and drawn patches; their reach is in cells and does not change with the level. The void floor is a share of the mean, scale-free.

Where the game and the theory differ

  • BPT wraps "every forming cluster of stars" in its spiral of data. The game glows and swirls the data round the 24 heaviest bodies of drawn mass 16 or more, whatever their number: a desktop field with 400 bodies above m = 16 marks only 24 of them, a phone field with 10 marks all 10, and the same 24 glow at level 28, where a body holds a few stars, and at level 202, where it holds a galaxy's worth.
  • The glow's reach is a share of the field (a quarter, between 2 and 24 cells), not a law.
  • The game shows the web BPT describes but does not measure it: no statistic of sheets, filaments and knots is computed, so the narration's stages are tied to the scale factor, not to what the matter has done.
  • A patch above 2.5 times the mean counts as a cluster with no source given.

Fixed numbers

Number Where What it is Kind
2 app.js:338 least glow reach, cells CAP
24 app.js:338 greatest glow reach, cells CAP
4 app.js:338 glow reach a quarter of the field CAP
16 app.js:339 least body mass to glow as a cluster CAP
24 app.js:339 the clusters that glow: the 24 heaviest CAP
1/2 app.js:344 glow ∝ 1/√k, the orbital speed PHYSICS (Kepler)
1 app.js:344 max(1, k): the glow flat within a cell METHOD
0.8 app.js:308 CLUSTER_GLOW, brightest glow DISPLAY
0.08, 0.35 app.js:385 data under the stars, from the 4th harmonic and before DISPLAY
16 app.js:829 least body mass to swirl the data CAP
24 app.js:829 the clusters that swirl the data: the 24 heaviest CAP
40000 app.js:831 the data dynamics' cache cleared past this METHOD (memory bound)
0.25, 0.5, 0.9 app.js:671–673 scale factors at which the web's stages are narrated DISPLAY
8 scene3d.js:826 cluster patches, 8 × 8 cells METHOD (patch size)
2.5 scene3d.js:830 a patch above 2.5 × the mean is a cluster METHOD (a cut; no source given)
4 scene3d.js:833 cluster glow full at 16 × the mean (log₂ / 4) DISPLAY
256 scene3d.js:831 least cluster point buffer METHOD
0.12 scene3d.js:922 void floor, 12% of the mean PHYSICS (Sheth & van de Weygaert 2004: 10 to 20%)

Part 6.11: Galaxies That Build, Merge and Keep Their Stars (v8.6)

The BPT law

BPT Part 3.14 (Galaxies: the Wells and the Stars Around Them) gives every central well a galaxy, its stars and gas the ones its well holds, a satellite well's stars its host's; the Disk Turn Rate sets how a disk turns, Ω_d = √(Δ_v/2)·H_f/(√2·λ⟲), fastest for the disks that formed earliest; and the Eddington Ratio of a Well makes a heart feeding near its limit a quasar. The author, 14 November 2026: "it still needs a ton of work on galaxies building and their movement and the stars movement around them."

The established physics

  • Galaxies assemble hierarchically. Small galaxies form first and merge into larger ones; the number of luminous galaxies rises as they form, and the massive ones grow by mergers (White & Rees 1978; Lacey & Cole 1993). A merger turns disks into spheroids: the late universe's massive galaxies are ellipticals and lenticulars, its forming ones spirals (Toomre & Toomre 1972; Barnes & Hernquist 1992).
  • Galaxies grow in size. At a fixed stellar mass a galaxy's radius grows about as the scale factor, (1 + z)^−1 for disks and faster for spheroids (van der Wel et al. 2014).
  • A minor merger's stars spread through the host in a few of its dynamical times, as streams and shells (Toomre & Toomre 1972; Johnston et al. 2008).
  • Quasars have an era. Their number peaks near z ≈ 2, about a third of the present scale factor, at the peak of star formation, and falls after; dimmer active nuclei (Seyferts) dominate later (Richards et al. 2006; Madau & Dickinson 2014). About one quasar in ten is radio-loud, with jets (Kellermann et al. 1989; Ivezić et al. 2002).

The game's math

The galaxies are read as before (Parts 6.1 to 6.5, app.js updateGalaxies, every Pulse from the second pass below); 8.6 changes how they are drawn (scene3d.js).

  • Each galaxy keeps its own stars (setGalaxies() scene3d.js:559). Each galaxy is a record kept by its well's id: its stars, its drawn centre, its drawn reach, its arms' angle, its type. A reading gives each galaxy its count of points (its share of the galaxies' share of the points the device draws, Part 6.8). The record adds the points it gained, each born fading in over 1.2 s (galPoint() scene3d.js:594, the same layout and light rules as Part 6.8), and lets go the ones it lost, the newest first, fading out over 1.2 s. Its stars are never redrawn at fresh places, so a reading changes the picture by what the galaxy gained or lost, not as a new picture.
  • A change of type is gradual (scene3d.js:574). When a reading gives a galaxy a new type (a spiral quenched to a lenticular, a merger's spheroid), about 35 % of its stars are let go and replaced by stars of the new type, at each reading until the type stands.
  • A galaxy grows under its stars (scene3d.js:751). A star keeps its distance as a share u of its galaxy's reach; the reach drawn is the reading's R (Part 6.5) times 0.4 + 0.6·a^0.8 (a the scale factor, expansionA), gliding to it with a time constant of 0.8 s. Small after the big bang, its full drawn size at the End of the Outward Expansion.
  • A galaxy whose well has merged falls into its host (scene3d.js:580). A galaxy missing from a reading falls into the nearest galaxy within two of their reaches together: its centre glides to the host's with a time constant of 0.9 s, its stars draw in to 0.3 of their distance and fade over 3 s; with no host near, it fades where it stands. The host's new stars fade in as its count rises.
  • The centre glides with a time constant of 0.25 s to its well's drawn place, across the torus's seam by the short way.
  • The turning (scene3d.js:749). Each star turns on its own orbit, Ω(ρ) as in Part 6.6, and the arms with their pattern. A galaxy's turning is slowed by one factor so that at its scale length it turns at most once in three seconds of the screen: a young disk turns tens of times a flip by the Disk Turn Rate, and held only to the frames' Nyquist limit (Part 6.6) an early galaxy strobed. All its stars slow together, so its inner stars still lap its outer ones.
  • The streams (placeStreams() scene3d.js:723) fall to the galaxy as drawn, its glided centre and its grown reach.
  • Quasars (scene3d.js:1728). Every well feeding at a tenth of its Eddington rate or more blazes with its glow; one in ten, by a hash of its well's id, the radio-loud, stands two jets out of the skin.
  • Quiet hearts (scene3d.js:1711). A heart feeding below a hundredth of its Eddington rate is drawn as a black point of 0.011 of the torus's span in a galaxy and 0.008 alone, half the 0.022 and 0.016 of a feeding one; Well #1 (0.03) and the Ascendant Wells (0.026) keep their marks. A quiet black hole is seen by the stars round it (Part 8.5).

The method, in plain steps:

each reading (every Pulse):
    for each galaxy read: keep its record; add the points it gained (fading in), let go the ones it lost (fading out)
        a new type: let go about a third of its points and draw new ones of the type
    each galaxy not read: it falls into the nearest galaxy within two reaches, or fades where it is
each drawn frame:
    each galaxy's centre glides to its well; its reach glides to R · (0.4 + 0.6 · a^0.8)
    its arms turn, and each star on its own orbit, all slowed by one factor to at most a turn in 3 s *(2.5 s since 18 November 2026; 9.15)*
    each star is placed at its share of the reach, its size by its fade

What one run showed

The run of 14 November 2026 (Part 9.11), at level 202: five galaxies after the big bang, all starbursts; 106 by a quarter of the final size; 156 by half; 219 at the End of the Outward Expansion; spirals the most numerous through the middle of the life, lenticulars, dwarf spheroidals and the first ellipticals rising at its close; up to 27 galaxies at a time falling into their hosts. Quasars: 5 just after the big bang, 64 to 82 between about 0.3 and 0.47 of the final size, then 9 to 24 to the end, the Seyferts rising from 0 to 64 at half the size and about 20 after.

Fixed numbers

Number Where What it is Kind
1.2 s scene3d.js:737 a star's fade in and out DISPLAY
0.35 scene3d.js:574 share of a galaxy's stars replaced at a reading of a new type DISPLAY
0.4, 0.6, 0.8 scene3d.js:751 drawn reach 0.4 + 0.6·a^0.8 DISPLAY (after van der Wel et al. 2014's growth with a)
0.8 s, 0.25 s, 0.9 s scene3d.js:737 glide of the reach, of the centre, of a falling centre DISPLAY
2 scene3d.js:580 a fallen galaxy's host is within two reaches METHOD
3 s, 0.7 scene3d.js:737 a fallen galaxy fades over 3 s, its stars drawn in to 0.3 DISPLAY
3 s scene3d.js:749 at most one turn at the scale length in 3 s of the screen DISPLAY
1 in 10 scene3d.js:1728 radio-loud quasars, with jets PHYSICS (Kellermann et al. 1989)
0.011, 0.008 scene3d.js:1711 quiet hearts' black points, shares of the torus's span DISPLAY

The second pass: stars that gather and turn (14 November 2026)

The author, after the first pass: "im seeing the stars it looks pretty full of stars but no coalescing around the wells, and no rotation around the wells." A census of who holds the stars (__pcCensus, app.js) and three runs found four causes.

  • The readings came in bursts (app.js measureFeeding). updateGalaxies ran when pulseCounter % 8 === 0; in the paced mode the wells' sweep runs on a later tick and is skipped when flips pile up, so the count it ran at was seldom a multiple of 8. Measured: the galaxy list re-read every 20 to 25 s of the screen, holding 4.5 × 10¹⁶ stars while the universe held 4 × 10²⁰; the wells with drawn galaxies held about 1 % of the stars. And a default universe lives about 64 flips, so even every 8 was an eighth of its life (galaxies 5, then 96, then 124). Now a reading runs once two flips have passed since the last (GAL_EVERY, one Pulse), and the wells' list once four have; a heart's feeding runs over the flips actually gone since the last reading (galGap, at most 16), where it was a fixed 8. After the change the drawn galaxies held 98 to 100 % of the stars through the whole life.
  • The stars counted for the drawing were the mass (scene3d.js setMatter). The Saturation Law of the drawn points (Part 8.7) took the real stars as the bodies' mass times starMult, about 20,000 at level 202 against 10²⁰ shining, so every layer of points was held near a fifth of its room. It now takes the stars shining, the greater of the two.
  • The galaxies' stars were too few to turn (scene3d.js galRoom()). 209 galaxies shared some 7,200 points, about 35 stars each. A galaxy's stars sit far closer than the sky's even spread, so the galaxies have their own room, a point for every 20 pixels of the screen (about 51,000 on a desktop, 16,000 on a phone), and each galaxy at least 12. A crowded galaxy's points are each dimmer by √(200/n), at least 0.35, so its added light shows its shape and not a white blot. Each point is placed without a new vector (surfacePoint, inline). Measured at one point for every 12 pixels, the frame took four times as long in the software renderer; at 20, about one and a half times.
  • The starlight covered the galaxies, and the hearts hid their middles (scene3d.js paintStarlight, setWells). The starlight skin was read from a million stars to 10²² a patch, so every patch of a deep universe was near full, an even carpet of fixed dots over the galaxies too, and the gas's glow added dots. It now holds only the stars outside every galaxy (a body with b.gal set is drawn by its galaxy), the field and intracluster stars, about a tenth of the light in the sky (Zibetti et al. 2005); each patch is read against the brightest across three decades (to the power 1.6), and its dots come from the stars alone, a second texture apart from the colour. A heart inside its galaxy, other than Well #1 and the Ascendant Wells, is drawn as a black point of 0.005 of the torus's span with its ring hugging it, its disk 0.012 of the span, and its quasar or Seyfert glow 0.45 of the size alone: a black hole is millionths of its galaxy across, and the black cores, as wide as their galaxies' bright middles, had left each galaxy a thin orange ring.

What the run after showed (to 0.6 of the final size, the same level and settings): 151 galaxies, 132 spirals, 12 starbursts, and lenticulars, dwarf irregulars and spheroidals; 52,000 galaxy points; up to 8 galaxies at a time falling into their hosts; the galaxies distinct clusters on a dark sky with the filaments faint between them, spirals as orange disks with their arms, starbursts blazing white; no errors.

Number Where What it is Kind
2 flips app.js GAL_EVERY a galaxy reading once two flips have passed METHOD
4 flips app.js measureFeeding the wells' list once four have passed METHOD
16 app.js galGap the most flips a heart's feeding runs over CAP
8 px (20 px before 18 November 2026) scene3d.js galRoom() the galaxies' room, a point for every 8 pixels DISPLAY (measured cost)
12 scene3d.js setGalaxies() the fewest points a galaxy DISPLAY
√(200/n), 0.35 scene3d.js placeGalaxies() a crowded galaxy's points dimmed DISPLAY
3 decades, 1.6 scene3d.js paintStarlight() the starlight read against its brightest patch DISPLAY
0.005, 0.012, 0.45 scene3d.js setWells() a heart in its galaxy: black point, disk, glow, shares DISPLAY

The galaxies' own room, the satellites, and the streams' floor (16 November 2026). (The turn cap given here, a turn in two seconds, is a turn in four since 18 November 2026; Chapter 9.) Three changes with the sky work of Chapter 8. The galaxies' point budget was a share (galShare) of the sky's stars in the galaxies' room, and with most stars outside the drawn galaxies that share starved them; a galaxy's real stars now saturate the galaxies' room on their own, at least 24 points a galaxy and 10 a dwarf. A satellite, a well inside a heavier halo (Part 6.2), drew nothing of its own and was set aside as a dark well, which is why a sky of thousands of wells showed about ninety; each is now drawn as a dwarf galaxy inside its host, its stars a share of the host's by mass (between 2 and 30 %), a fifth of the host's drawn size scaled by the root of that share, turning with the host, its well drawn small at its centre; the host keeps its drawn size, since dwarfs are left out of the neighbour rule of Part 6.5, and a dwarf's stars are left out of the galaxies' total, since they are its host's (counted twice they drove the share to 1 and the streams' budget to nothing: measured, 73 stream points to 0). The streams of Part 6.9 have a floor, 12 points for each of the largest fifth of the galaxies, since with every body inside a halo the infall share read 0 and no stream was drawn; and the turn cap of Part 6.11 is a turn in two seconds at the scale length, was three (the author: "things arent moving around enough").

A well at every lit site, and why the sites were dark (16 November 2026). The author at level 202: "there should be more than 200 wells for a 202 level universe!" Measured headless at 60 % of the final size, the model held 153 to 183 wells and about 1,100 sites still waiting for a heart. Three causes, each found by measurement and each a scale-model artefact. First, a site was filled only when a drawn stellar well was born inside it, and a drawn lot stands for starMult stars (4 × 10¹⁷ at level 202), so a galaxy shining with 10²⁰ stars could wait all its life for a drawn death; by Part 3.14's own rule, a well is born "by its first dying star sinking to its heart", and by the real count that star has died within a flip of the first light (a 25-Sun star lives 7 Myr, a flip at level 202 is about 170 Myr). A site lit for two flips now gets its heart, a 10-Sun remnant (firstStarHearts, app.js), counted as a well born in its site as a direct collapse is. Measured: wells 167 to 250, and 98.9 % of all stars in galaxies round a well. Second, the sites' conditions were tallied (the new __pcSites hook): of 1,070 waiting at 40 %, 658 had gas but read as cold little halos, median virial temperature 1,780 K and circular speed 7 km/s, too warm to cool and then stripped at reionization, because the heat is read from the model's motions at the level-6 scale; the other 412 had no bodies within reach at all. A halo is now judged by its real mass too (heat.js galaxyHeat, mSuns = M · realPerCell): above the filtering mass M_RETAIN = 10⁹ Suns (Okamoto, Gao & Theuns 2008; Gnedin 2000) it keeps at least a quarter of the full rate times the Baryon Retention at its real circular speed, v_c ≈ 100 km/s · (M/10¹² Suns)^(1/3). Third, star formation's own density gate (stars.js: a cloud denser than twice the model's mean) held the same sparse clouds dark; a cloud whose real mass is above M_RETAIN now passes it, its rate still the heat's and the depletion law's. Measured with all three at 35 % of the final size: 1,035 wells (951 in the census), 394 sites waiting, 754 galaxies drawn, 833 wells on screen, two thirds of the skin above half brightness, 1,489 stream points. The 412 empty halos remain: Proto Wells whose matter went to their neighbours, dark halos in the sky's terms, drawn as nothing for now.

The review of the web (16 November 2026, late). The author: "im not seeing the filaments form, I think it needs to allow even more wells? the stars currently look just drawn onto the torus and they are in lines ... please do a huge review and ensure that all the stars are actually doing something like swirling wells or clumping together into filaments ... no matter how small the well or galaxy, the darkness at the center should be solid". The cause of the missing web was not too few wells but too many places: at level 202 the law asks for more Proto Wells than the field has blocks, so densePlaces took every block with any data, one cell wide, and 1,250 sites four cells apart blanketed the torus; once every site with a body lit (the real-mass floors of the same day), a galaxy drawn out to halfway to its neighbour stood in every gap and nothing was left dark for a filament to stand against. Two things were tried. First, seeding sites only at peaks of the data count above the mean: measured, it found almost nothing (6 galaxies, 1,130 dark wells), because at the Data Nova the data fills every place and the blocks tie; reverted the same hour. Second, the one kept: the web is the matter's contrast, so a site's galaxy is drawn, and its heart born, only where its halo holds at least HALO_GATE = 0.35 of the median halo mass of the sites that hold any (updateGalaxies, firstStarHearts); the thin halos are the voids' failed sites, dark, their few stars left to the skin's faint floor. With it: a galaxy is drawn no larger than its halo and a half (Part 6.5's neighbour share capped by w.siteR), so the space between galaxies is empty; the ripples are smoothed over three cells instead of two (zeldovich.js RIPPLE_SMOOTH), so the web's filaments and voids stand at a scale the eye reads against the galaxies. Measured at 56 % of the final size: 1,015 wells, 296 sites waiting, 746 galaxies, 781 wells on screen, drawing 167 ms median in software; the close-up shows galaxies as spirals and ellipticals with dark centres rather than a carpet of dots, the web still mild at that age, as it should be, since the ripples' contrast reaches 3 only by the final well. If the final-well web still reads flat to the author's eye, the next lever is the ripples themselves, RIPPLE_TODAY and RIPPLE_SMOOTH, not the count of wells.