@idle-screens/savers-classic 2.0.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,13 +3,14 @@ import {
3
3
  flurry,
4
4
  globe,
5
5
  hardRain,
6
+ messages,
6
7
  mystify,
7
8
  pipes,
8
9
  rainstorm,
9
10
  reactionDiffusion,
10
11
  spotlight,
11
12
  warp
12
- } from "./chunk-MIVXP2IL.js";
13
+ } from "./chunk-RMW74SYX.js";
13
14
 
14
15
  // src/idle-worker.ts
15
16
  import { runIdleWorker } from "@idle-screens/core";
@@ -270,8 +271,15 @@ function validateLayer(layer, path, err, warn, spec) {
270
271
  }
271
272
  }
272
273
  if (layer.spin !== void 0) {
273
- if (!isNum(layer.spin)) err(`${path}.spin`, "must be a number (degrees/sec)");
274
- else if (Math.abs(layer.spin) > LIMITS.maxSpin) err(`${path}.spin`, `must be within \xB1${LIMITS.maxSpin} deg/sec`);
274
+ if (isRange(layer.spin)) {
275
+ if (Math.abs(layer.spin[0]) > LIMITS.maxSpin || Math.abs(layer.spin[1]) > LIMITS.maxSpin) {
276
+ err(`${path}.spin`, `each end of the range must be within \xB1${LIMITS.maxSpin} deg/sec`);
277
+ }
278
+ } else if (!isNum(layer.spin)) {
279
+ err(`${path}.spin`, "must be a number or a [min,max] range (degrees/sec)");
280
+ } else if (Math.abs(layer.spin) > LIMITS.maxSpin) {
281
+ err(`${path}.spin`, `must be within \xB1${LIMITS.maxSpin} deg/sec`);
282
+ }
275
283
  }
276
284
  if (layer.grow !== void 0) {
277
285
  if (!isObj(layer.grow)) err(`${path}.grow`, "must be an object");
@@ -767,8 +775,10 @@ function buildEntities(layer, rng, w, h, scale = 1, countScale = 1) {
767
775
  pulsePeriod: layer.pulse?.period ?? 1e3,
768
776
  pulsePhase: layer.pulse ? rng.range(0, Math.PI * 2) : 0,
769
777
  // New draws AFTER pulsePhase — guarded so existing specs keep identical streams.
770
- spinSpeed: layer.spin ? layer.spin * Math.PI / 180 : 0,
771
- // deg/sec → rad/sec
778
+ // Scalar spin: no draw here, one phase draw below (unchanged). Range spin
779
+ // (new): one seeded speed draw here, then the phase draw — array form is new
780
+ // so the extra draw can't perturb any existing spec's entity stream.
781
+ spinSpeed: typeof layer.spin === "number" ? layer.spin * Math.PI / 180 : Array.isArray(layer.spin) ? rng.range(layer.spin[0], layer.spin[1]) * Math.PI / 180 : 0,
772
782
  spinPhase: layer.spin ? rng.range(0, Math.PI * 2) : 0,
773
783
  growAmp: layer.grow?.amp ?? 0,
774
784
  growPeriod: layer.grow?.period ?? 1e3,
@@ -1161,6 +1171,11 @@ function hexToRgba(hex, alpha) {
1161
1171
  return `rgba(${n >> 16 & 255},${n >> 8 & 255},${n & 255},${alpha})`;
1162
1172
  }
1163
1173
  var FONT_PREFIX_RE = /^((?:(?:italic|oblique|bold|bolder|lighter|normal|\d{3})\s+)+)/;
1174
+ var FONT_PX_RE = /(\d*\.?\d+)px/;
1175
+ function scaleFontPx(font, factor) {
1176
+ if (factor === 1) return font;
1177
+ return font.replace(FONT_PX_RE, (_m, n) => `${(Number(n) * factor).toFixed(2)}px`);
1178
+ }
1164
1179
  function composeFontShorthand(sz, font) {
1165
1180
  const m = FONT_PREFIX_RE.exec(font);
1166
1181
  if (m) return `${m[1].trim()} ${sz}px ${font.slice(m[0].length)}`;
@@ -1232,6 +1247,11 @@ var SpecInstance = class {
1232
1247
  /** Active glide between two resolved specs (live setParam/applyTrack). */
1233
1248
  transition = null;
1234
1249
  lastStructural = "";
1250
+ /** Viewport factor for absolute px sizes — 1 for `units: 'px'` specs. */
1251
+ fontScale() {
1252
+ if (this.effSpec.units === "px") return 1;
1253
+ return Math.min(this.w, this.h) / (this.effSpec.referenceViewport ?? LIMITS.referenceViewport);
1254
+ }
1235
1255
  sizeCanvas() {
1236
1256
  const dpr = Math.min(this.saverCtx.dpr, 2);
1237
1257
  this.canvas.width = Math.max(1, Math.round(this.w * dpr));
@@ -1446,7 +1466,7 @@ var SpecInstance = class {
1446
1466
  } else {
1447
1467
  ctx.textAlign = sprite.align ?? "center";
1448
1468
  ctx.textBaseline = sprite.baseline ?? "middle";
1449
- ctx.font = sprite.font ? /\dpx/.test(sprite.font) ? sprite.font : composeFontShorthand(sz, sprite.font) : `${sz}px system-ui, sans-serif`;
1469
+ ctx.font = sprite.font ? FONT_PX_RE.test(sprite.font) ? scaleFontPx(sprite.font, this.fontScale()) : composeFontShorthand(sz, sprite.font) : `${sz}px system-ui, sans-serif`;
1450
1470
  ctx.fillStyle = sprite.color ?? "#e6e8ef";
1451
1471
  const idx = spriteIndexAt(e, t, sprite.strings.length);
1452
1472
  const text = sprite.strings[idx] ?? sprite.strings[0];
@@ -1819,84 +1839,113 @@ var DASHBOARD_SPEC = {
1819
1839
  background: {
1820
1840
  type: "gradient",
1821
1841
  stops: [
1822
- { at: 0, color: "#06060c" },
1823
- { at: 0.5, color: "#0a0a14" },
1824
- { at: 1, color: "#0c0c18" }
1842
+ { at: 0, color: "#05070d" },
1843
+ { at: 0.55, color: "#080b14" },
1844
+ { at: 1, color: "#0a0d18" }
1825
1845
  ]
1826
1846
  },
1827
1847
  layers: [
1828
- // --- ambient depth ---
1829
- {
1830
- key: "dust",
1831
- count: 40,
1832
- sprite: { kind: "circle", radius: [1852e-7, 7407e-7], color: "#1a2538" },
1833
- alpha: [0.1, 0.25],
1834
- motion: { type: "drift", speed: [2778e-7, 1111e-6], bob: 2778e-7 }
1835
- },
1848
+ // ---- ambient: the LED wall behind everything ----
1836
1849
  {
1837
1850
  key: "led-wall",
1838
- count: 140,
1839
- sprite: { kind: "circle", radius: [8e-4, 12e-4], color: "#274058" },
1840
- alpha: [0.05, 0.11],
1841
- layout: { type: "grid", columns: 20, jitter: 0.15 },
1842
- // A slow breath travels diagonally across the wall of dots.
1843
- pulse: { amp: 0.3, period: 5e3, wave: { wavelength: 0.35, angle: 20 } },
1851
+ count: 240,
1852
+ sprite: { kind: "circle", radius: [7e-4, 11e-4], color: "#22344c" },
1853
+ alpha: [0.04, 0.1],
1854
+ layout: { type: "grid", columns: 24, jitter: 0.1 },
1855
+ pulse: { amp: 0.3, period: 6200, wave: { wavelength: 0.4, angle: 24 } },
1844
1856
  motion: { type: "static" }
1845
1857
  },
1846
- // --- header (boots first) ---
1858
+ // ---- frame chrome (boots first) ----
1859
+ {
1860
+ key: "rule-header",
1861
+ count: 1,
1862
+ position: { x: 0.5, y: 0.085 },
1863
+ sprite: { kind: "rect", width: [0.93, 0.93], aspect: [12e-4, 12e-4], color: "#24384f" },
1864
+ alpha: [0.8, 0.8],
1865
+ motion: { type: "static" },
1866
+ life: { enter: 100, fade: 400 }
1867
+ },
1868
+ {
1869
+ key: "rule-footer",
1870
+ count: 1,
1871
+ position: { x: 0.5, y: 0.915 },
1872
+ sprite: { kind: "rect", width: [0.93, 0.93], aspect: [12e-4, 12e-4], color: "#24384f" },
1873
+ alpha: [0.8, 0.8],
1874
+ motion: { type: "static" },
1875
+ life: { enter: 100, fade: 400 }
1876
+ },
1877
+ {
1878
+ key: "rule-col-left",
1879
+ count: 1,
1880
+ position: { x: 0.265, y: 0.5 },
1881
+ sprite: { kind: "rect", width: [9e-4, 9e-4], aspect: [620, 620], color: "#1c2c40" },
1882
+ alpha: [0.7, 0.7],
1883
+ motion: { type: "static" },
1884
+ life: { enter: 100, fade: 400 }
1885
+ },
1886
+ {
1887
+ key: "rule-col-right",
1888
+ count: 1,
1889
+ position: { x: 0.645, y: 0.5 },
1890
+ sprite: { kind: "rect", width: [9e-4, 9e-4], aspect: [620, 620], color: "#1c2c40" },
1891
+ alpha: [0.7, 0.7],
1892
+ motion: { type: "static" },
1893
+ life: { enter: 100, fade: 400 }
1894
+ },
1895
+ // ---- header band ----
1847
1896
  {
1848
1897
  key: "title",
1849
1898
  count: 1,
1850
- position: { x: 0.5, y: 0.045 },
1899
+ position: { x: 0.035, y: 0.052 },
1851
1900
  sprite: {
1852
1901
  kind: "text",
1853
- strings: ["CONTROL CENTER"],
1854
- color: "#556677",
1902
+ strings: ["VIREO-9 \xB7 TRANS-LUNAR RELAY \xB7 OPS WALL 03"],
1903
+ color: "#7f93ab",
1855
1904
  font: "600 13px 'SF Mono', monospace",
1856
- align: "center"
1905
+ align: "left"
1857
1906
  },
1858
1907
  motion: { type: "static" },
1859
1908
  life: { enter: 200, fade: 600 }
1860
1909
  },
1861
1910
  {
1862
- key: "status",
1911
+ key: "clock",
1863
1912
  count: 1,
1864
- position: { x: 0.94, y: 0.045 },
1913
+ position: { x: 0.5, y: 0.058 },
1865
1914
  sprite: {
1866
1915
  kind: "text",
1867
- strings: ["\u25CF ALL SYSTEMS GO"],
1868
- color: "#44cc66",
1869
- font: "bold 10px monospace",
1870
- align: "right"
1916
+ strings: ["04:17:26 UTC"],
1917
+ color: "#c8d4e4",
1918
+ font: "600 20px 'SF Mono', monospace",
1919
+ align: "center"
1871
1920
  },
1872
- pulse: { amp: 0.2, period: 2400 },
1873
1921
  motion: { type: "static" },
1874
1922
  life: { enter: 200, fade: 600 }
1875
1923
  },
1876
1924
  {
1877
- key: "clock",
1925
+ key: "status",
1878
1926
  count: 1,
1879
- position: { x: 0.06, y: 0.045 },
1927
+ position: { x: 0.965, y: 0.052 },
1880
1928
  sprite: {
1881
1929
  kind: "text",
1882
- strings: ["21:47"],
1883
- color: "#8899aa",
1884
- font: "bold 12px monospace",
1885
- align: "left"
1930
+ strings: ["\u25CF UPLINK LOCKED \xB7 WATCH C"],
1931
+ color: "#46d17a",
1932
+ font: "bold 11px 'SF Mono', monospace",
1933
+ align: "right"
1886
1934
  },
1935
+ pulse: { amp: 0.18, period: 2600 },
1887
1936
  motion: { type: "static" },
1888
1937
  life: { enter: 200, fade: 600 }
1889
1938
  },
1890
- // --- left column: readings (boots second) ---
1939
+ // ---- left column: arrays (boots second) ----
1891
1940
  {
1892
- key: "power-label",
1941
+ key: "dish1",
1893
1942
  count: 1,
1894
- position: { x: 0.06, y: 0.14 },
1943
+ position: { x: 0.035, y: 0.148 },
1895
1944
  sprite: {
1896
1945
  kind: "text",
1897
- strings: ["POWER"],
1898
- color: "#445566",
1899
- font: "9px monospace",
1946
+ strings: ["DSA-1 EAST AZ 214.6\xB0 EL 38.2\xB0"],
1947
+ color: "#9fb2c8",
1948
+ font: "11px 'SF Mono', monospace",
1900
1949
  align: "left",
1901
1950
  baseline: "top"
1902
1951
  },
@@ -1904,267 +1953,245 @@ var DASHBOARD_SPEC = {
1904
1953
  life: { enter: 700, fade: 600 }
1905
1954
  },
1906
1955
  {
1907
- key: "power-value",
1908
- count: 1,
1909
- position: { x: 0.06, y: 0.18 },
1910
- sprite: {
1911
- kind: "text",
1912
- strings: ["3.2 kW"],
1913
- color: "#ffd166",
1914
- font: "bold 26px monospace",
1915
- align: "left",
1916
- baseline: "top"
1917
- },
1956
+ key: "dish1-bars",
1957
+ count: 14,
1958
+ sprite: { kind: "rect", width: [38e-4, 38e-4], aspect: [0.5, 2.6], color: "#2ee6c8" },
1959
+ alpha: [0.3, 0.65],
1960
+ layout: { type: "grid", columns: 14 },
1961
+ region: { x: [0.035, 0.15], y: [0.183, 0.203] },
1962
+ pulse: { amp: 0.42, period: 1500, wave: { wavelength: 0.09, angle: 0 } },
1918
1963
  motion: { type: "static" },
1919
1964
  life: { enter: 700, fade: 600 }
1920
1965
  },
1921
1966
  {
1922
- key: "network-label",
1967
+ key: "dish2",
1923
1968
  count: 1,
1924
- position: { x: 0.06, y: 0.28 },
1969
+ position: { x: 0.035, y: 0.243 },
1925
1970
  sprite: {
1926
1971
  kind: "text",
1927
- strings: ["NETWORK"],
1928
- color: "#445566",
1929
- font: "9px monospace",
1972
+ strings: ["DSA-2 WEST AZ 097.1\xB0 EL 61.7\xB0"],
1973
+ color: "#9fb2c8",
1974
+ font: "11px 'SF Mono', monospace",
1930
1975
  align: "left",
1931
1976
  baseline: "top"
1932
1977
  },
1933
1978
  motion: { type: "static" },
1934
- life: { enter: 700, fade: 600 }
1979
+ life: { enter: 850, fade: 600 }
1935
1980
  },
1936
1981
  {
1937
- key: "network-value",
1938
- count: 1,
1939
- position: { x: 0.06, y: 0.32 },
1940
- sprite: {
1941
- kind: "text",
1942
- strings: ["940 Mb/s"],
1943
- color: "#44aaff",
1944
- font: "bold 26px monospace",
1945
- align: "left",
1946
- baseline: "top"
1947
- },
1982
+ key: "dish2-bars",
1983
+ count: 14,
1984
+ sprite: { kind: "rect", width: [38e-4, 38e-4], aspect: [0.5, 2.2], color: "#44aaff" },
1985
+ alpha: [0.3, 0.6],
1986
+ layout: { type: "grid", columns: 14 },
1987
+ region: { x: [0.035, 0.15], y: [0.278, 0.298] },
1988
+ pulse: { amp: 0.4, period: 1900, wave: { wavelength: 0.11, angle: 0 } },
1948
1989
  motion: { type: "static" },
1949
- life: { enter: 700, fade: 600 }
1990
+ life: { enter: 850, fade: 600 }
1950
1991
  },
1951
1992
  {
1952
- key: "climate-label",
1993
+ key: "dish3",
1953
1994
  count: 1,
1954
- position: { x: 0.06, y: 0.42 },
1995
+ position: { x: 0.035, y: 0.338 },
1955
1996
  sprite: {
1956
1997
  kind: "text",
1957
- strings: ["CLIMATE"],
1958
- color: "#445566",
1959
- font: "9px monospace",
1998
+ strings: ["DSA-3 POLAR AZ 002.4\xB0 EL 12.9\xB0 \u25B3 WIND"],
1999
+ color: "#5d7089",
2000
+ font: "11px 'SF Mono', monospace",
1960
2001
  align: "left",
1961
2002
  baseline: "top"
1962
2003
  },
1963
2004
  motion: { type: "static" },
1964
- life: { enter: 700, fade: 600 }
2005
+ life: { enter: 1e3, fade: 600 }
1965
2006
  },
1966
2007
  {
1967
- key: "climate-value",
1968
- count: 1,
1969
- position: { x: 0.06, y: 0.46 },
1970
- sprite: {
1971
- kind: "text",
1972
- strings: ["21.5\xB0"],
1973
- color: "#44ddcc",
1974
- font: "bold 26px monospace",
1975
- align: "left",
1976
- baseline: "top"
1977
- },
2008
+ key: "dish3-bars",
2009
+ count: 14,
2010
+ sprite: { kind: "rect", width: [38e-4, 38e-4], aspect: [0.4, 1.1], color: "#5d7089" },
2011
+ alpha: [0.2, 0.4],
2012
+ layout: { type: "grid", columns: 14 },
2013
+ region: { x: [0.035, 0.15], y: [0.373, 0.393] },
2014
+ pulse: { amp: 0.3, period: 2600, wave: { wavelength: 0.14, angle: 0 } },
1978
2015
  motion: { type: "static" },
1979
- life: { enter: 700, fade: 600 }
2016
+ life: { enter: 1e3, fade: 600 }
2017
+ },
2018
+ {
2019
+ key: "dish-leds",
2020
+ count: 3,
2021
+ sprite: { kind: "circle", radius: [4e-3, 4e-3], color: "#46d17a" },
2022
+ alpha: [0.9, 0.9],
2023
+ layout: { type: "grid", columns: 1 },
2024
+ region: { x: [0.238, 0.246], y: [0.15, 0.35] },
2025
+ pulse: { amp: 0.25, period: 2100 },
2026
+ motion: { type: "static" },
2027
+ life: { enter: 1e3, fade: 600 }
2028
+ },
2029
+ // carrier + doppler + station env
2030
+ {
2031
+ key: "carrier-wave",
2032
+ count: 30,
2033
+ sprite: { kind: "rect", width: [32e-4, 32e-4], aspect: [0.4, 3.6], color: "#2ee6c8" },
2034
+ alpha: [0.25, 0.6],
2035
+ layout: { type: "grid", columns: 30 },
2036
+ region: { x: [0.035, 0.245], y: [0.47, 0.5] },
2037
+ pulse: { amp: 0.5, period: 2100, wave: { wavelength: 0.16, angle: 0 } },
2038
+ motion: { type: "static" },
2039
+ life: { enter: 1150, fade: 600 }
1980
2040
  },
1981
2041
  {
1982
- key: "alerts-label",
2042
+ key: "doppler",
1983
2043
  count: 1,
1984
- position: { x: 0.06, y: 0.56 },
2044
+ position: { x: 0.035, y: 0.535 },
1985
2045
  sprite: {
1986
2046
  kind: "text",
1987
- strings: ["ALERTS"],
1988
- color: "#445566",
1989
- font: "9px monospace",
2047
+ strings: ["CARRIER X-BAND \xB7 DOPPLER +2.114 kHz \xB7 DRIFT 0.03"],
2048
+ color: "#9fb2c8",
2049
+ font: "10px 'SF Mono', monospace",
1990
2050
  align: "left",
1991
2051
  baseline: "top"
1992
2052
  },
1993
2053
  motion: { type: "static" },
1994
- life: { enter: 700, fade: 600 }
2054
+ life: { enter: 1150, fade: 600 }
1995
2055
  },
1996
2056
  {
1997
- key: "alerts-value",
2057
+ key: "env-line",
1998
2058
  count: 1,
1999
- position: { x: 0.06, y: 0.6 },
2059
+ position: { x: 0.035, y: 0.6 },
2000
2060
  sprite: {
2001
2061
  kind: "text",
2002
- strings: ["0"],
2003
- color: "#44cc66",
2004
- font: "bold 26px monospace",
2062
+ strings: ["STATION \xB7 PWR 28.1 V \xB7 THERM 312 K \xB7 GYRO NOM \xB7 PROP 81%"],
2063
+ color: "#5d7089",
2064
+ font: "10px 'SF Mono', monospace",
2005
2065
  align: "left",
2006
2066
  baseline: "top"
2007
2067
  },
2008
2068
  motion: { type: "static" },
2009
- life: { enter: 700, fade: 600 }
2069
+ life: { enter: 1300, fade: 600 }
2010
2070
  },
2011
- // --- center: energy gauge (boots third) ---
2071
+ // ---- center: the orbital plot (boots third) ----
2012
2072
  {
2013
- key: "gauge-ring",
2073
+ key: "moon",
2014
2074
  count: 1,
2015
- position: { x: 0.4, y: 0.36 },
2016
- sprite: { kind: "ring", radius: [0.105, 0.105], color: "#1e3a52", width: 28e-4 },
2017
- alpha: [0.85, 0.85],
2075
+ position: { x: 0.455, y: 0.4 },
2076
+ sprite: { kind: "circle", radius: [0.028, 0.028], color: "#8fa3bd", soft: true },
2077
+ alpha: [0.9, 0.9],
2018
2078
  motion: { type: "static" },
2019
2079
  life: { enter: 1200, fade: 700 }
2020
2080
  },
2021
2081
  {
2022
- key: "gauge-glow",
2023
- count: 1,
2024
- position: { x: 0.4, y: 0.36 },
2025
- sprite: { kind: "ring", radius: [0.088, 0.088], color: "#2ee6c8", width: 16e-4 },
2082
+ key: "orbit-guides",
2083
+ count: 3,
2084
+ // All three guides pin to the plot centre; the seeded radius range
2085
+ // spreads them into concentric orbits (`position` is count:1-only).
2086
+ region: { x: [0.455, 0.455], y: [0.4, 0.4] },
2087
+ sprite: { kind: "ring", radius: [0.075, 0.185], color: "#1e3a52", width: 11e-4 },
2026
2088
  alpha: [0.55, 0.55],
2027
- blend: "lighter",
2028
- pulse: { amp: 0.25, period: 4e3 },
2029
- grow: { amp: 0.05, period: 4e3 },
2030
- motion: { type: "static" },
2031
- life: { enter: 1200, fade: 700 }
2032
- },
2033
- {
2034
- key: "gauge-label",
2035
- count: 1,
2036
- position: { x: 0.4, y: 0.29 },
2037
- sprite: {
2038
- kind: "text",
2039
- strings: ["ENERGY"],
2040
- color: "#445566",
2041
- font: "9px monospace",
2042
- align: "center"
2043
- },
2044
- motion: { type: "static" },
2045
- life: { enter: 1200, fade: 700 }
2046
- },
2047
- {
2048
- key: "gauge-value",
2049
- count: 1,
2050
- position: { x: 0.4, y: 0.375 },
2051
- sprite: {
2052
- kind: "text",
2053
- strings: ["73%"],
2054
- color: "#2ee6c8",
2055
- font: "bold 34px monospace",
2056
- align: "center"
2057
- },
2058
2089
  motion: { type: "static" },
2059
2090
  life: { enter: 1200, fade: 700 }
2060
2091
  },
2061
2092
  {
2062
- key: "equalizer",
2063
- count: 22,
2093
+ key: "fleet",
2094
+ count: 5,
2064
2095
  sprite: {
2065
- kind: "rect",
2066
- width: [5e-3, 5e-3],
2067
- aspect: [0.6, 3.4],
2096
+ kind: "circle",
2097
+ radius: [45e-4, 65e-4],
2068
2098
  color: "#2ee6c8",
2069
- colors: ["#2ee6c8", "#44aaff", "#aa88ff"],
2070
- colorWeights: [3, 2, 1]
2099
+ colors: ["#2ee6c8", "#44aaff", "#ffd166", "#aa88ff", "#ff9f43"]
2071
2100
  },
2072
- alpha: [0.35, 0.7],
2073
- layout: { type: "grid", columns: 22 },
2074
- region: { x: [0.28, 0.52], y: [0.585, 0.615] },
2075
- // Wave-phased pulse sweeps along the bars — reads as a live meter.
2076
- pulse: { amp: 0.4, period: 1600, wave: { wavelength: 0.1, angle: 0 } },
2077
- motion: { type: "static" },
2078
- life: { enter: 1200, fade: 700 }
2101
+ alpha: [0.85, 0.95],
2102
+ blend: "lighter",
2103
+ motion: { type: "orbit", speed: [4, 11], radius: [0.075, 0.185], center: { x: 0.455, y: 0.4 } },
2104
+ trail: { length: 9, fade: 0.75 },
2105
+ // The relay web: each craft holds a comm chain to its neighbours.
2106
+ links: { k: 2, maxDist: 0.5, color: "#2ee6c8", alpha: 0.2, width: 12e-4, mode: "chain" },
2107
+ life: { enter: 1350, fade: 700 }
2079
2108
  },
2080
- // --- right column: agenda + devices (boots fourth) ---
2081
2109
  {
2082
- key: "agenda-label",
2110
+ key: "fleet-legend",
2083
2111
  count: 1,
2084
- position: { x: 0.64, y: 0.14 },
2112
+ position: { x: 0.455, y: 0.63 },
2085
2113
  sprite: {
2086
2114
  kind: "text",
2087
- strings: ["AGENDA"],
2088
- color: "#445566",
2089
- font: "9px monospace",
2090
- align: "left",
2115
+ strings: ["TRACKING 5 \xB7 KESTREL TIDE-2 LIMELIGHT CATWALK-1 SLIPSTREAM"],
2116
+ color: "#5d7089",
2117
+ font: "9px 'SF Mono', monospace",
2118
+ align: "center",
2091
2119
  baseline: "top"
2092
2120
  },
2093
2121
  motion: { type: "static" },
2094
- life: { enter: 1700, fade: 600 }
2122
+ life: { enter: 1500, fade: 700 }
2095
2123
  },
2124
+ // pass schedule under the plot
2096
2125
  {
2097
- key: "agenda-1",
2126
+ key: "pass-label",
2098
2127
  count: 1,
2099
- position: { x: 0.64, y: 0.19 },
2128
+ position: { x: 0.3, y: 0.69 },
2100
2129
  sprite: {
2101
2130
  kind: "text",
2102
- strings: ["09:00 Standup"],
2103
- color: "#8899aa",
2104
- font: "11px monospace",
2131
+ strings: ["PASS SCHEDULE"],
2132
+ color: "#41536b",
2133
+ font: "9px 'SF Mono', monospace",
2105
2134
  align: "left",
2106
- baseline: "top",
2107
- maxWidth: 0.2593
2135
+ baseline: "top"
2108
2136
  },
2109
2137
  motion: { type: "static" },
2110
- life: { enter: 1700, fade: 600 }
2138
+ life: { enter: 1650, fade: 600 }
2111
2139
  },
2112
2140
  {
2113
- key: "agenda-2",
2141
+ key: "pass-1",
2114
2142
  count: 1,
2115
- position: { x: 0.64, y: 0.23 },
2143
+ position: { x: 0.3, y: 0.72 },
2116
2144
  sprite: {
2117
2145
  kind: "text",
2118
- strings: ["12:30 Lunch w/ Kai"],
2119
- color: "#778899",
2120
- font: "11px monospace",
2146
+ strings: ["04:41 CATWALK-1 ACQUIRE \xB7 DSA-1 \u25B2 12 MIN"],
2147
+ color: "#c8d4e4",
2148
+ font: "11px 'SF Mono', monospace",
2121
2149
  align: "left",
2122
- baseline: "top",
2123
- maxWidth: 0.2593
2150
+ baseline: "top"
2124
2151
  },
2125
2152
  motion: { type: "static" },
2126
- life: { enter: 1700, fade: 600 }
2153
+ life: { enter: 1650, fade: 600 }
2127
2154
  },
2128
2155
  {
2129
- key: "agenda-3",
2156
+ key: "pass-2",
2130
2157
  count: 1,
2131
- position: { x: 0.64, y: 0.27 },
2158
+ position: { x: 0.3, y: 0.757 },
2132
2159
  sprite: {
2133
2160
  kind: "text",
2134
- strings: ["18:00 Gym"],
2135
- color: "#667788",
2136
- font: "11px monospace",
2161
+ strings: ["05:03 TIDE-2 OCCULT EXIT \xB7 DSA-2"],
2162
+ color: "#7f93ab",
2163
+ font: "11px 'SF Mono', monospace",
2137
2164
  align: "left",
2138
- baseline: "top",
2139
- maxWidth: 0.2593
2165
+ baseline: "top"
2140
2166
  },
2141
2167
  motion: { type: "static" },
2142
- life: { enter: 1700, fade: 600 }
2168
+ life: { enter: 1750, fade: 600 }
2143
2169
  },
2144
2170
  {
2145
- key: "devices-label",
2171
+ key: "pass-3",
2146
2172
  count: 1,
2147
- position: { x: 0.64, y: 0.36 },
2173
+ position: { x: 0.3, y: 0.794 },
2148
2174
  sprite: {
2149
2175
  kind: "text",
2150
- strings: ["DEVICES"],
2151
- color: "#445566",
2152
- font: "9px monospace",
2176
+ strings: ["05:47 KESTREL RANGING \xB7 DSA-1+2"],
2177
+ color: "#7f93ab",
2178
+ font: "11px 'SF Mono', monospace",
2153
2179
  align: "left",
2154
2180
  baseline: "top"
2155
2181
  },
2156
2182
  motion: { type: "static" },
2157
- life: { enter: 1700, fade: 600 }
2183
+ life: { enter: 1850, fade: 600 }
2158
2184
  },
2185
+ // ---- right column: telemetry (boots fourth) ----
2159
2186
  {
2160
- key: "devices-1",
2187
+ key: "signal-label",
2161
2188
  count: 1,
2162
- position: { x: 0.64, y: 0.41 },
2189
+ position: { x: 0.665, y: 0.115 },
2163
2190
  sprite: {
2164
2191
  kind: "text",
2165
- strings: ["Lights 6 on"],
2166
- color: "#8899aa",
2167
- font: "11px monospace",
2192
+ strings: ["PRIMARY CARRIER \xB7 CATWALK-1"],
2193
+ color: "#41536b",
2194
+ font: "9px 'SF Mono', monospace",
2168
2195
  align: "left",
2169
2196
  baseline: "top"
2170
2197
  },
@@ -2172,14 +2199,14 @@ var DASHBOARD_SPEC = {
2172
2199
  life: { enter: 1700, fade: 600 }
2173
2200
  },
2174
2201
  {
2175
- key: "devices-2",
2202
+ key: "signal-value",
2176
2203
  count: 1,
2177
- position: { x: 0.64, y: 0.45 },
2204
+ position: { x: 0.665, y: 0.14 },
2178
2205
  sprite: {
2179
2206
  kind: "text",
2180
- strings: ["Thermostat eco"],
2181
- color: "#778899",
2182
- font: "11px monospace",
2207
+ strings: ["-112.4 dBm"],
2208
+ color: "#ffd166",
2209
+ font: "bold 30px 'SF Mono', monospace",
2183
2210
  align: "left",
2184
2211
  baseline: "top"
2185
2212
  },
@@ -2187,130 +2214,130 @@ var DASHBOARD_SPEC = {
2187
2214
  life: { enter: 1700, fade: 600 }
2188
2215
  },
2189
2216
  {
2190
- key: "devices-3",
2217
+ key: "telemetry-row",
2191
2218
  count: 1,
2192
- position: { x: 0.64, y: 0.49 },
2219
+ position: { x: 0.665, y: 0.215 },
2193
2220
  sprite: {
2194
2221
  kind: "text",
2195
- strings: ["Locks secured"],
2196
- color: "#667788",
2197
- font: "11px monospace",
2222
+ strings: ["RANGE 1.28 LS DOWNLINK 2.048 Mb/s BUFFER 38%"],
2223
+ color: "#9fb2c8",
2224
+ font: "11px 'SF Mono', monospace",
2198
2225
  align: "left",
2199
2226
  baseline: "top"
2200
2227
  },
2201
2228
  motion: { type: "static" },
2202
- life: { enter: 1700, fade: 600 }
2229
+ life: { enter: 1800, fade: 600 }
2203
2230
  },
2231
+ // event log
2204
2232
  {
2205
- key: "devices-4",
2233
+ key: "feed-1",
2206
2234
  count: 1,
2207
- position: { x: 0.64, y: 0.53 },
2235
+ position: { x: 0.665, y: 0.3 },
2208
2236
  sprite: {
2209
2237
  kind: "text",
2210
- strings: ["Media paused"],
2211
- color: "#556677",
2212
- font: "11px monospace",
2238
+ strings: ["04:15:02 DSA-1 LOCK RE-ACQUIRED"],
2239
+ color: "#9fb2c8",
2240
+ font: "10px 'SF Mono', monospace",
2213
2241
  align: "left",
2214
2242
  baseline: "top"
2215
2243
  },
2216
2244
  motion: { type: "static" },
2217
- life: { enter: 1700, fade: 600 }
2245
+ life: { enter: 1950, fade: 600 }
2218
2246
  },
2219
- // --- bottom: activity feed (boots last) ---
2220
2247
  {
2221
- key: "feed-label",
2248
+ key: "feed-2",
2222
2249
  count: 1,
2223
- position: { x: 0.06, y: 0.74 },
2250
+ position: { x: 0.665, y: 0.334 },
2224
2251
  sprite: {
2225
2252
  kind: "text",
2226
- strings: ["ACTIVITY"],
2227
- color: "#445566",
2228
- font: "9px monospace",
2253
+ strings: ["04:12:47 CATWALK-1 WHEEL DESAT OK"],
2254
+ color: "#7f93ab",
2255
+ font: "10px 'SF Mono', monospace",
2229
2256
  align: "left",
2230
2257
  baseline: "top"
2231
2258
  },
2232
2259
  motion: { type: "static" },
2233
- life: { enter: 2200, fade: 600 }
2260
+ life: { enter: 2050, fade: 600 }
2234
2261
  },
2235
2262
  {
2236
- key: "feed-1",
2263
+ key: "feed-3",
2237
2264
  count: 1,
2238
- position: { x: 0.06, y: 0.78 },
2265
+ position: { x: 0.665, y: 0.368 },
2239
2266
  sprite: {
2240
2267
  kind: "text",
2241
- strings: ["21:42 Front door locked"],
2242
- color: "#7a8a7a",
2243
- font: "10px monospace",
2268
+ strings: ["04:09:31 RANGING RESIDUAL 0.4 m"],
2269
+ color: "#5d7089",
2270
+ font: "10px 'SF Mono', monospace",
2244
2271
  align: "left",
2245
- baseline: "top",
2246
- maxWidth: 0.5556
2272
+ baseline: "top"
2247
2273
  },
2248
2274
  motion: { type: "static" },
2249
- life: { enter: 2200, fade: 600 }
2275
+ life: { enter: 2150, fade: 600 }
2250
2276
  },
2277
+ // alert + relay load
2251
2278
  {
2252
- key: "feed-2",
2279
+ key: "alert",
2253
2280
  count: 1,
2254
- position: { x: 0.06, y: 0.82 },
2281
+ position: { x: 0.665, y: 0.49 },
2255
2282
  sprite: {
2256
2283
  kind: "text",
2257
- strings: ["21:36 Thermostat \u2192 eco"],
2258
- color: "#6a7a6a",
2259
- font: "10px monospace",
2284
+ strings: ["\u25B3 SOLAR FLUX ELEVATED \u2014 MONITORING"],
2285
+ color: "#ff9f43",
2286
+ font: "bold 11px 'SF Mono', monospace",
2260
2287
  align: "left",
2261
- baseline: "top",
2262
- maxWidth: 0.5556
2288
+ baseline: "top"
2263
2289
  },
2290
+ pulse: { amp: 0.22, period: 3400 },
2264
2291
  motion: { type: "static" },
2265
- life: { enter: 2200, fade: 600 }
2292
+ life: { enter: 2450, fade: 600 }
2266
2293
  },
2267
2294
  {
2268
- key: "feed-3",
2269
- count: 1,
2270
- position: { x: 0.06, y: 0.86 },
2295
+ key: "load-bars",
2296
+ count: 24,
2271
2297
  sprite: {
2272
- kind: "text",
2273
- strings: ["21:14 Backup completed"],
2274
- color: "#5a6a5a",
2275
- font: "10px monospace",
2276
- align: "left",
2277
- baseline: "top",
2278
- maxWidth: 0.5556
2298
+ kind: "rect",
2299
+ width: [42e-4, 42e-4],
2300
+ aspect: [0.5, 3.2],
2301
+ color: "#aa88ff",
2302
+ colors: ["#aa88ff", "#44aaff", "#2ee6c8"],
2303
+ colorWeights: [2, 2, 3]
2279
2304
  },
2305
+ alpha: [0.3, 0.65],
2306
+ layout: { type: "grid", columns: 24 },
2307
+ region: { x: [0.665, 0.965], y: [0.58, 0.615] },
2308
+ pulse: { amp: 0.45, period: 1800, wave: { wavelength: 0.12, angle: 0 } },
2280
2309
  motion: { type: "static" },
2281
- life: { enter: 2200, fade: 600 }
2310
+ life: { enter: 2550, fade: 600 }
2282
2311
  },
2283
2312
  {
2284
- key: "feed-4",
2313
+ key: "load-note",
2285
2314
  count: 1,
2286
- position: { x: 0.06, y: 0.9 },
2315
+ position: { x: 0.665, y: 0.65 },
2287
2316
  sprite: {
2288
2317
  kind: "text",
2289
- strings: ["20:58 Motion \xB7 driveway"],
2290
- color: "#4d5e4d",
2291
- font: "10px monospace",
2318
+ strings: ["RELAY LOAD \xB7 QUEUE 14 FRAMES \xB7 NOMINAL"],
2319
+ color: "#5d7089",
2320
+ font: "10px 'SF Mono', monospace",
2292
2321
  align: "left",
2293
- baseline: "top",
2294
- maxWidth: 0.5556
2322
+ baseline: "top"
2295
2323
  },
2296
2324
  motion: { type: "static" },
2297
- life: { enter: 2200, fade: 600 }
2325
+ life: { enter: 2550, fade: 600 }
2298
2326
  },
2327
+ // ---- footer band ----
2299
2328
  {
2300
- key: "feed-5",
2329
+ key: "footer",
2301
2330
  count: 1,
2302
- position: { x: 0.06, y: 0.94 },
2331
+ position: { x: 0.035, y: 0.95 },
2303
2332
  sprite: {
2304
2333
  kind: "text",
2305
- strings: ["20:41 Sunset scene on"],
2306
- color: "#3d4e3d",
2307
- font: "10px monospace",
2308
- align: "left",
2309
- baseline: "top",
2310
- maxWidth: 0.5556
2334
+ strings: ["NET STATE GREEN \xB7 3 ARRAYS \xB7 5 CARRIERS \xB7 DSN HANDOVER 23:34 \xB7 NEXT WINDOW 04:41:00"],
2335
+ color: "#41536b",
2336
+ font: "9px 'SF Mono', monospace",
2337
+ align: "left"
2311
2338
  },
2312
2339
  motion: { type: "static" },
2313
- life: { enter: 2200, fade: 600 }
2340
+ life: { enter: 2750, fade: 600 }
2314
2341
  }
2315
2342
  ]
2316
2343
  };
@@ -2443,6 +2470,118 @@ var MATRIX_RAIN_SPEC = {
2443
2470
  }
2444
2471
  ]
2445
2472
  };
2473
+ var NOSTALGHIA_CANDLE_SPEC = {
2474
+ schemaVersion: 1,
2475
+ id: "nostalghia-candle",
2476
+ label: "Nostalghia's Candle",
2477
+ seed: 1983,
2478
+ motionIntensity: "calm",
2479
+ background: {
2480
+ type: "gradient",
2481
+ stops: [
2482
+ { at: 0, color: "#050302" },
2483
+ { at: 0.55, color: "#0a0704" },
2484
+ { at: 1, color: "#120c08" }
2485
+ ]
2486
+ },
2487
+ layers: [
2488
+ {
2489
+ key: "halo",
2490
+ count: 1,
2491
+ position: { x: 0.5, y: 0.52 },
2492
+ sprite: {
2493
+ kind: "circle",
2494
+ radius: [0.11, 0.11],
2495
+ color: "#c4782a",
2496
+ soft: true
2497
+ },
2498
+ // Base 0.04 + amp 0.02 → breathes ~0.02..0.06; never clamps to 0.
2499
+ // (pulse.amp is ADDED to alpha, not multiplied.) Kept subordinate to the flame.
2500
+ alpha: [0.04, 0.04],
2501
+ blend: "lighter",
2502
+ pulse: { amp: 0.02, period: 1e4 },
2503
+ grow: { amp: 0.08, period: 1e4 },
2504
+ motion: { type: "static" }
2505
+ },
2506
+ {
2507
+ key: "smoke",
2508
+ count: 3,
2509
+ sprite: {
2510
+ kind: "circle",
2511
+ radius: [0.01, 0.022],
2512
+ color: "#6a6258",
2513
+ soft: true
2514
+ },
2515
+ alpha: [0.02, 0.04],
2516
+ blend: "lighter",
2517
+ region: { x: [0.46, 0.54], y: [0.36, 0.48] },
2518
+ pulse: { amp: 0.015, period: 4500 },
2519
+ motion: { type: "rise", speed: [2e-3, 4e-3], sway: 8e-3 }
2520
+ },
2521
+ {
2522
+ key: "flame-glow",
2523
+ count: 1,
2524
+ sprite: {
2525
+ kind: "circle",
2526
+ radius: [0.028, 0.028],
2527
+ color: "#ffb040",
2528
+ soft: true
2529
+ },
2530
+ alpha: [0.32, 0.32],
2531
+ blend: "lighter",
2532
+ pulse: { amp: 0.12, period: 1400 },
2533
+ grow: { amp: 0.4, period: 1600 },
2534
+ // Tiny orbit = positional lean without drifting off-center (wander has vx).
2535
+ motion: {
2536
+ type: "orbit",
2537
+ speed: [18, 18],
2538
+ radius: [3e-3, 3e-3],
2539
+ center: { x: 0.5, y: 0.52 }
2540
+ }
2541
+ },
2542
+ {
2543
+ key: "flame-core",
2544
+ count: 1,
2545
+ sprite: {
2546
+ kind: "circle",
2547
+ radius: [0.014, 0.014],
2548
+ color: "#fff6e0",
2549
+ soft: true
2550
+ },
2551
+ alpha: [0.95, 0.95],
2552
+ blend: "lighter",
2553
+ pulse: { amp: 0.25, period: 900 },
2554
+ grow: { amp: 0.55, period: 1100 },
2555
+ motion: {
2556
+ type: "orbit",
2557
+ speed: [22, 22],
2558
+ radius: [25e-4, 25e-4],
2559
+ center: { x: 0.5, y: 0.52 }
2560
+ }
2561
+ },
2562
+ {
2563
+ key: "embers",
2564
+ count: 7,
2565
+ sprite: {
2566
+ kind: "circle",
2567
+ radius: [18e-4, 4e-3],
2568
+ color: "#e08a34",
2569
+ soft: true
2570
+ },
2571
+ alpha: [0.4, 0.8],
2572
+ blend: "lighter",
2573
+ region: { x: [0.35, 0.65], y: [0.4, 0.7] },
2574
+ pulse: { amp: 0.2, period: 2200 },
2575
+ trail: { length: 2200, fade: 1 },
2576
+ motion: {
2577
+ type: "drift",
2578
+ speed: [4e-3, 0.012],
2579
+ angle: 270,
2580
+ bob: 8e-3
2581
+ }
2582
+ }
2583
+ ]
2584
+ };
2446
2585
  var POLYGONS_SPEC = {
2447
2586
  schemaVersion: 1,
2448
2587
  id: "polygons",
@@ -2873,7 +3012,8 @@ var SCHEMA_EXAMPLES = [
2873
3012
  { id: "warp-tunnel", label: "Warp Tunnel", spec: WARP_TUNNEL_SPEC },
2874
3013
  { id: "polygons", label: "Polygons", spec: POLYGONS_SPEC },
2875
3014
  { id: "matrix-rain", label: "Matrix Rain", spec: MATRIX_RAIN_SPEC },
2876
- { id: "procession", label: "Night Procession", spec: PROCESSION_SPEC }
3015
+ { id: "procession", label: "Night Procession", spec: PROCESSION_SPEC },
3016
+ { id: "nostalghia-candle", label: "Nostalghia's Candle", spec: NOSTALGHIA_CANDLE_SPEC }
2877
3017
  ];
2878
3018
  var EXAMPLE_SPECS = SCHEMA_EXAMPLES.map((e) => e.spec);
2879
3019
  var EXAMPLE_BY_ID = Object.fromEntries(
@@ -2892,7 +3032,8 @@ runIdleWorker(
2892
3032
  [pipes.manifest.id]: pipes,
2893
3033
  [flurry.manifest.id]: flurry,
2894
3034
  [fluid.manifest.id]: fluid,
2895
- [reactionDiffusion.manifest.id]: reactionDiffusion
3035
+ [reactionDiffusion.manifest.id]: reactionDiffusion,
3036
+ [messages.manifest.id]: messages
2896
3037
  },
2897
3038
  { compiler: compileSaver }
2898
3039
  );