← Commit history

Publish 1.0.4

John Lauer ·b1c667f605 · ·parent a58fc5a
6 files changed +58−50
README.md+5−5
@@ -43,12 +43,12 @@ state is rolled at every epoch.  | param | default | meaning | |---|---|---|-| pt | 4.5 | playground seconds of free evolution between epochs |-| dt | 3 | seconds to steer onto the mark, and back out |-| ct | 0.3 | seconds before the epoch the outline cheat fades in |+| pt | 5 | playground seconds of free evolution between epochs |+| dt | 0.7 | seconds to steer onto the mark, and back out |+| ct | 0.2 | seconds before the epoch the outline cheat fades in | | st | 0 | seconds the mark is held dead still |-| logo | 100 | peak opacity of the flat teal mark, in percent |-| llead | 1 | seconds the logo fade starts before the sit and ends after it |+| logo | 80 | peak opacity of the flat teal mark, in percent |+| llead | 0.5 | seconds the logo fade starts before the sit and ends after it | | tlead | 1.5 | seconds before the epoch the dark lobe fades to teal | | ov | 1 | 0 makes the cheat its own act after the steer | | intro | 1 | 0 skips the teal logo intro |
loader.html+3−3
@@ -19,9 +19,9 @@ 'use strict'; var Q=new URLSearchParams(location.search); function P(k,d){var v=parseFloat(Q.get(k));return isFinite(v)?v:d;}-var PT=P('pt',4.5), DT=P('dt',3), CT=P('ct',0.3), ST=P('st',0);-var LOGO_PK=Math.max(0,Math.min(1,P('logo',100)/100));-var LLEAD=Math.abs(P('llead',1)), TLEAD=Math.abs(P('tlead',1.5));+var PT=P('pt',5), DT=P('dt',0.7), CT=P('ct',0.2), ST=P('st',0);+var LOGO_PK=Math.max(0,Math.min(1,P('logo',80)/100));+var LLEAD=Math.abs(P('llead',0.5)), TLEAD=Math.abs(P('tlead',1.5)); var OV=Q.get('ov')!=='0', DO_INTRO=Q.get('intro')!=='0'; var BG=[0.051,0.067,0.090]; 
orbital-lab.html+20−16
@@ -439,39 +439,39 @@       </div>       <div class="row">         <label title="pt, the playground timeline. The tab 1 animation exactly: Evolve running over this loop's rolled random state, free and alive, for this many seconds before mom calls.">pt play</label>-        <span class="mark"><input type="range" id="l_pt" min="2" max="30" step="0.5" value="10"><i class="livepip" id="lp4pt"></i></span>-        <output id="o_pt">10.0s</output>+        <span class="mark"><input type="range" id="l_pt" min="2" max="30" step="0.5" value="5"><i class="livepip" id="lp4pt"></i></span>+        <output id="o_pt">5.0s</output>       </div>       <div class="row">         <label title="dt, the dinner timeline. Mom calls: every coefficient steers from wherever play left it onto the known epoch numbers, p_x and p_y at 0.7071 and everything else 0, arriving exactly as these seconds end. The way back out to play afterwards uses this same length.">dt dinner</label>-        <span class="mark"><input type="range" id="l_dt" min="0.5" max="8" step="0.1" value="3"><i class="livepip" id="lp4dt"></i></span>-        <output id="o_dt">3.0s</output>+        <span class="mark"><input type="range" id="l_dt" min="0.5" max="8" step="0.1" value="0.7"><i class="livepip" id="lp4dt"></i></span>+        <output id="o_dt">0.7s</output>       </div>       <div class="row">         <label title="ct, the cheat timeline. The tab 2 trick, the quadrant clip and edge correction that force the exact logo outline, ramped 0 to 100% and reaching exactly 100% at the epoch. The harsh edges live here, so experiment with WHEN it runs. The un-cheat on the way out mirrors this length.">ct cheat</label>-        <span class="mark"><input type="range" id="l_ct" min="0.2" max="5" step="0.1" value="1.5"><i class="livepip" id="lp4ct"></i></span>-        <output id="o_ct">1.5s</output>+        <span class="mark"><input type="range" id="l_ct" min="0.2" max="5" step="0.1" value="0.2"><i class="livepip" id="lp4ct"></i></span>+        <output id="o_ct">0.2s</output>       </div>       <label class="chk" title="Checked: ct OVERLAYS the tail of dt, carving while the steer is still finishing underneath, busier and the cycle stays shorter. Unchecked: ct becomes its OWN act after dt, carving a finished, still 2p into the mark, calmer, and adds ct to each side of the cycle.">         <input type="checkbox" id="l_ctMode" checked><span>ct is an overlay on dt</span>       </label>       <div class="row">         <label title="st, the sit timeline. Arrived. The shape pins to the mark and does nothing for this long, dead still. The fresh random roll for the NEXT playground happens the moment we arrive, invisibly, so the exit is always brand new.">st sit</label>-        <span class="mark"><input type="range" id="l_st" min="0" max="5" step="0.1" value="1"><i class="livepip" id="lp4st"></i></span>-        <output id="o_st">1.0s</output>+        <span class="mark"><input type="range" id="l_st" min="0" max="5" step="0.1" value="0"><i class="livepip" id="lp4st"></i></span>+        <output id="o_st">0.0s</output>       </div>       <label class="chk" title="Fade the flat teal logomark over the 3D during the sit: in across the first half of the sit, out across the second half.">         <input type="checkbox" id="l_logoOn" checked><span>logo fade during the sit</span>       </label>       <div class="row">         <label title="Peak opacity the logo fade reaches, halfway through the sit. 0% never shows it, 100% fully covers the shading.">logo peak</label>-        <span class="mark"><input type="range" id="l_logoPeak" min="0" max="1" step="0.01" value="0.5"><i class="livepip" id="lp4peak"></i></span>-        <output id="o_logoPeak">50%</output>+        <span class="mark"><input type="range" id="l_logoPeak" min="0" max="1" step="0.01" value="0.8"><i class="livepip" id="lp4peak"></i></span>+        <output id="o_logoPeak">80%</output>       </div>       <div class="row">         <label title="Start the logo fade this many seconds BEFORE the sit begins, and let the fade-out run the same amount past its end. Negative means earlier. With sit at 0.0s this slider alone still creates a logo moment around the epoch instant.">logo lead</label>-        <span class="mark"><input type="range" id="l_logoLead" min="-3" max="0" step="0.1" value="0"><i class="livepip" id="lp4llead"></i></span>-        <output id="o_logoLead">0.0s</output>+        <span class="mark"><input type="range" id="l_logoLead" min="-3" max="0" step="0.1" value="-0.5"><i class="livepip" id="lp4llead"></i></span>+        <output id="o_logoLead">-0.5s</output>       </div>       <div class="row">         <label title="The dark negative lobe fades to the positive teal this many seconds before the epoch, and fades back the same amount after it, so the mark reads as one colour by the time the logo lands. Negative means earlier. At 0.0s the colour snaps exactly on the epoch.">teal lead</label>@@ -1416,7 +1416,7 @@ const SAY = {   lSnapDel: () => ['Snapshot deleted', `${allSnaps().length} left · factory ones (*) ship with the page`],   mLoop:    () => ['Loop', 'The directed cut: teal intro, then play, dinner, cheat, sit, and back out, fresh roll every pass'],   lRestart: () => ['Intro restarted', 'From the teal open'],-  lDefaults:() => ['Loop defaults restored', 'pt 10s, dt 3s, ct 1.5s as overlay, sit 1s, logo on at 50%, teal lead -1.5s'],+  lDefaults:() => ['Loop defaults restored', 'The tuned cut: pt 5s, dt 0.7s, ct 0.2s overlay, no sit, logo 80% on a 0.5s lead, teal lead 1.5s'],   fDefaults:() => ['Defaults restored', 'Morph 2.6s each way, lead in and tail out 0.6s, ease 0.35, hold 1.0s, fill 50%'], }; document.addEventListener('click', e => {@@ -1916,8 +1916,8 @@ function driveFinal(dt){    The whole thing opens with the teal intro: mark fades in alone, the 3D    arrives underneath exactly on the epoch, mark lets go, loop runs. */ let loopMode=false, loopT=0, introT=0, inIntro=true, loopRolled=false;-let l_pt=10, l_dt=3, l_ct=1.5, l_ctOverlay=true, l_st=1.0;-let l_logoOn=true, l_logoPeak=0.5, l_logoLead=0, l_tealLead=1.5, l_guides=false;  // leads kept positive+let l_pt=5, l_dt=0.7, l_ct=0.2, l_ctOverlay=true, l_st=0;   // John's tuned numbers ship as the defaults+let l_logoOn=true, l_logoPeak=0.8, l_logoLead=0.5, l_tealLead=1.5, l_guides=false;  // leads kept positive let loopGains=null;  function rollLoopGains(){                    // tab 1's Randomise, verbatim@@ -2050,7 +2050,7 @@ function driveLoop(dt){ }  /* ---- tab 4 controls ---- */-const LOOP_DEFAULTS={l_pt:10,l_dt:3,l_ct:1.5,l_st:1,l_logoPeak:0.5,l_logoLead:0,l_tealLead:-1.5};+const LOOP_DEFAULTS={l_pt:5,l_dt:0.7,l_ct:0.2,l_st:0,l_logoPeak:0.8,l_logoLead:-0.5,l_tealLead:-1.5}; [['l_pt','o_pt',v=>{l_pt=v;return v.toFixed(1)+'s';}],  ['l_dt','o_dt',v=>{l_dt=v;return v.toFixed(1)+'s';}],  ['l_ct','o_ct',v=>{l_ct=v;return v.toFixed(1)+'s';}],@@ -2085,6 +2085,10 @@ const SNAP_KEY='orbital-lab-snapshots-v1';    including the wiki sandbox where there is no storage at all. Saved user    snapshots live per browser origin and appear after these. */ const FACTORY_SNAPS = [+  { name: 'snap 3 · pt5 dt0.7 ct0.2 st0', factory: true,   // the shipped defaults+    vals: { pt:5, dt:0.7, ct:0.2, ov:true, st:0, lo:true, lp:0.8, ll:0.5, tl:1.5, gd:false } },+  { name: 'snap 2 · pt5 dt1 ct0.2 st0', factory: true,+    vals: { pt:5, dt:1, ct:0.2, ov:true, st:0, lo:true, lp:1, ll:0.3, tl:1.5, gd:false } },   { name: 'john 1 · pt4.5 dt3 ct0.3 st0', factory: true,     vals: { pt:4.5, dt:3, ct:0.3, ov:true, st:0, lo:true, lp:1, ll:1, tl:1.5, gd:false } } ];
package.json+1−1
@@ -2,7 +2,7 @@   "slug": "orbital-lab",   "title": "Orbital Lab",   "type": "app",-  "version": "1.0.3",+  "version": "1.0.4",   "description": "The Adom logomark is a hydrogen 2p orbital: psi = (2p_x + 2p_y)/sqrt(2). A live Babylon.js lab that proves it (all 16 real spherical harmonics, the alignment cheat, and the directed loop), plus loader.html: the same animation as one dependency-free WebGL file for webview load screens.",   "tags": ["brand", "physics", "babylon", "webgl", "animation", "loader"],   "dependencies": {},
page.json+1−1
@@ -2,7 +2,7 @@   "slug": "orbital-lab",   "title": "Orbital Lab",   "type": "app",-  "version": "1.0.3",+  "version": "1.0.4",   "description": "The Adom logomark is a hydrogen 2p orbital: psi = (2p_x + 2p_y)/sqrt(2). A live Babylon.js lab that proves it (all 16 real spherical harmonics, the alignment cheat, and the directed loop), plus loader.html: the same animation as one dependency-free WebGL file for webview load screens.",   "tags": [     "brand",
readme.html+28−24
@@ -445,39 +445,39 @@       </div>       <div class="row">         <label title="pt, the playground timeline. The tab 1 animation exactly: Evolve running over this loop's rolled random state, free and alive, for this many seconds before mom calls.">pt play</label>-        <span class="mark"><input type="range" id="l_pt" min="2" max="30" step="0.5" value="10"><i class="livepip" id="lp4pt"></i></span>-        <output id="o_pt">10.0s</output>+        <span class="mark"><input type="range" id="l_pt" min="2" max="30" step="0.5" value="5"><i class="livepip" id="lp4pt"></i></span>+        <output id="o_pt">5.0s</output>       </div>       <div class="row">         <label title="dt, the dinner timeline. Mom calls: every coefficient steers from wherever play left it onto the known epoch numbers, p_x and p_y at 0.7071 and everything else 0, arriving exactly as these seconds end. The way back out to play afterwards uses this same length.">dt dinner</label>-        <span class="mark"><input type="range" id="l_dt" min="0.5" max="8" step="0.1" value="3"><i class="livepip" id="lp4dt"></i></span>-        <output id="o_dt">3.0s</output>+        <span class="mark"><input type="range" id="l_dt" min="0.5" max="8" step="0.1" value="0.7"><i class="livepip" id="lp4dt"></i></span>+        <output id="o_dt">0.7s</output>       </div>       <div class="row">         <label title="ct, the cheat timeline. The tab 2 trick, the quadrant clip and edge correction that force the exact logo outline, ramped 0 to 100% and reaching exactly 100% at the epoch. The harsh edges live here, so experiment with WHEN it runs. The un-cheat on the way out mirrors this length.">ct cheat</label>-        <span class="mark"><input type="range" id="l_ct" min="0.2" max="5" step="0.1" value="1.5"><i class="livepip" id="lp4ct"></i></span>-        <output id="o_ct">1.5s</output>+        <span class="mark"><input type="range" id="l_ct" min="0.2" max="5" step="0.1" value="0.2"><i class="livepip" id="lp4ct"></i></span>+        <output id="o_ct">0.2s</output>       </div>       <label class="chk" title="Checked: ct OVERLAYS the tail of dt, carving while the steer is still finishing underneath, busier and the cycle stays shorter. Unchecked: ct becomes its OWN act after dt, carving a finished, still 2p into the mark, calmer, and adds ct to each side of the cycle.">         <input type="checkbox" id="l_ctMode" checked><span>ct is an overlay on dt</span>       </label>       <div class="row">         <label title="st, the sit timeline. Arrived. The shape pins to the mark and does nothing for this long, dead still. The fresh random roll for the NEXT playground happens the moment we arrive, invisibly, so the exit is always brand new.">st sit</label>-        <span class="mark"><input type="range" id="l_st" min="0" max="5" step="0.1" value="1"><i class="livepip" id="lp4st"></i></span>-        <output id="o_st">1.0s</output>+        <span class="mark"><input type="range" id="l_st" min="0" max="5" step="0.1" value="0"><i class="livepip" id="lp4st"></i></span>+        <output id="o_st">0.0s</output>       </div>       <label class="chk" title="Fade the flat teal logomark over the 3D during the sit: in across the first half of the sit, out across the second half.">         <input type="checkbox" id="l_logoOn" checked><span>logo fade during the sit</span>       </label>       <div class="row">         <label title="Peak opacity the logo fade reaches, halfway through the sit. 0% never shows it, 100% fully covers the shading.">logo peak</label>-        <span class="mark"><input type="range" id="l_logoPeak" min="0" max="1" step="0.01" value="0.5"><i class="livepip" id="lp4peak"></i></span>-        <output id="o_logoPeak">50%</output>+        <span class="mark"><input type="range" id="l_logoPeak" min="0" max="1" step="0.01" value="0.8"><i class="livepip" id="lp4peak"></i></span>+        <output id="o_logoPeak">80%</output>       </div>       <div class="row">         <label title="Start the logo fade this many seconds BEFORE the sit begins, and let the fade-out run the same amount past its end. Negative means earlier. With sit at 0.0s this slider alone still creates a logo moment around the epoch instant.">logo lead</label>-        <span class="mark"><input type="range" id="l_logoLead" min="-3" max="0" step="0.1" value="0"><i class="livepip" id="lp4llead"></i></span>-        <output id="o_logoLead">0.0s</output>+        <span class="mark"><input type="range" id="l_logoLead" min="-3" max="0" step="0.1" value="-0.5"><i class="livepip" id="lp4llead"></i></span>+        <output id="o_logoLead">-0.5s</output>       </div>       <div class="row">         <label title="The dark negative lobe fades to the positive teal this many seconds before the epoch, and fades back the same amount after it, so the mark reads as one colour by the time the logo lands. Negative means earlier. At 0.0s the colour snaps exactly on the epoch.">teal lead</label>@@ -1426,7 +1426,7 @@ const SAY = {   lSnapDel: () => ['Snapshot deleted', `${allSnaps().length} left · factory ones (*) ship with the page`],   mLoop:    () => ['Loop', 'The directed cut: teal intro, then play, dinner, cheat, sit, and back out, fresh roll every pass'],   lRestart: () => ['Intro restarted', 'From the teal open'],-  lDefaults:() => ['Loop defaults restored', 'pt 10s, dt 3s, ct 1.5s as overlay, sit 1s, logo on at 50%, teal lead -1.5s'],+  lDefaults:() => ['Loop defaults restored', 'The tuned cut: pt 5s, dt 0.7s, ct 0.2s overlay, no sit, logo 80% on a 0.5s lead, teal lead 1.5s'],   fDefaults:() => ['Defaults restored', 'Morph 2.6s each way, lead in and tail out 0.6s, ease 0.35, hold 1.0s, fill 50%'], }; document.addEventListener('click', e => {@@ -1926,8 +1926,8 @@ function driveFinal(dt){    The whole thing opens with the teal intro: mark fades in alone, the 3D    arrives underneath exactly on the epoch, mark lets go, loop runs. */ let loopMode=false, loopT=0, introT=0, inIntro=true, loopRolled=false;-let l_pt=10, l_dt=3, l_ct=1.5, l_ctOverlay=true, l_st=1.0;-let l_logoOn=true, l_logoPeak=0.5, l_logoLead=0, l_tealLead=1.5, l_guides=false;  // leads kept positive+let l_pt=5, l_dt=0.7, l_ct=0.2, l_ctOverlay=true, l_st=0;   // John's tuned numbers ship as the defaults+let l_logoOn=true, l_logoPeak=0.8, l_logoLead=0.5, l_tealLead=1.5, l_guides=false;  // leads kept positive let loopGains=null;  function rollLoopGains(){                    // tab 1's Randomise, verbatim@@ -2060,7 +2060,7 @@ function driveLoop(dt){ }  /* ---- tab 4 controls ---- */-const LOOP_DEFAULTS={l_pt:10,l_dt:3,l_ct:1.5,l_st:1,l_logoPeak:0.5,l_logoLead:0,l_tealLead:-1.5};+const LOOP_DEFAULTS={l_pt:5,l_dt:0.7,l_ct:0.2,l_st:0,l_logoPeak:0.8,l_logoLead:-0.5,l_tealLead:-1.5}; [['l_pt','o_pt',v=>{l_pt=v;return v.toFixed(1)+'s';}],  ['l_dt','o_dt',v=>{l_dt=v;return v.toFixed(1)+'s';}],  ['l_ct','o_ct',v=>{l_ct=v;return v.toFixed(1)+'s';}],@@ -2095,6 +2095,10 @@ const SNAP_KEY='orbital-lab-snapshots-v1';    including the wiki sandbox where there is no storage at all. Saved user    snapshots live per browser origin and appear after these. */ const FACTORY_SNAPS = [+  { name: 'snap 3 · pt5 dt0.7 ct0.2 st0', factory: true,   // the shipped defaults+    vals: { pt:5, dt:0.7, ct:0.2, ov:true, st:0, lo:true, lp:0.8, ll:0.5, tl:1.5, gd:false } },+  { name: 'snap 2 · pt5 dt1 ct0.2 st0', factory: true,+    vals: { pt:5, dt:1, ct:0.2, ov:true, st:0, lo:true, lp:1, ll:0.3, tl:1.5, gd:false } },   { name: 'john 1 · pt4.5 dt3 ct0.3 st0', factory: true,     vals: { pt:4.5, dt:3, ct:0.3, ov:true, st:0, lo:true, lp:1, ll:1, tl:1.5, gd:false } } ];@@ -2575,12 +2579,12 @@ window.__lab = { push, zeros, HARMONICS, setAnim:v=>{animate=v;} };   <h3>Parameters</h3>   <table>     <tr><th>param</th><th>default</th><th>meaning</th></tr>-    <tr><td>pt</td><td>4.5</td><td>playground seconds of free evolution between epochs</td></tr>-    <tr><td>dt</td><td>3</td><td>seconds to steer onto the mark, and back out</td></tr>-    <tr><td>ct</td><td>0.3</td><td>seconds before the epoch the outline cheat fades in</td></tr>+    <tr><td>pt</td><td>5</td><td>playground seconds of free evolution between epochs</td></tr>+    <tr><td>dt</td><td>0.7</td><td>seconds to steer onto the mark, and back out</td></tr>+    <tr><td>ct</td><td>0.2</td><td>seconds before the epoch the outline cheat fades in</td></tr>     <tr><td>st</td><td>0</td><td>seconds the mark is held dead still</td></tr>-    <tr><td>logo</td><td>100</td><td>peak opacity of the flat teal mark, in percent</td></tr>-    <tr><td>llead</td><td>1</td><td>seconds the logo fade starts before the sit and ends after it</td></tr>+    <tr><td>logo</td><td>80</td><td>peak opacity of the flat teal mark, in percent</td></tr>+    <tr><td>llead</td><td>0.5</td><td>seconds the logo fade starts before the sit and ends after it</td></tr>     <tr><td>tlead</td><td>1.5</td><td>seconds before the epoch the dark lobe fades to teal</td></tr>     <tr><td>ov</td><td>1</td><td>0 makes the cheat its own act after the steer</td></tr>     <tr><td>intro</td><td>1</td><td>0 skips the teal logo intro</td></tr>@@ -2607,9 +2611,9 @@ window.__lab = { push, zeros, HARMONICS, setAnim:v=>{animate=v;} }; &#x27;use strict&#x27;; var Q=new URLSearchParams(location.search); function P(k,d){var v=parseFloat(Q.get(k));return isFinite(v)?v:d;}-var PT=P(&#x27;pt&#x27;,4.5), DT=P(&#x27;dt&#x27;,3), CT=P(&#x27;ct&#x27;,0.3), ST=P(&#x27;st&#x27;,0);-var LOGO_PK=Math.max(0,Math.min(1,P(&#x27;logo&#x27;,100)/100));-var LLEAD=Math.abs(P(&#x27;llead&#x27;,1)), TLEAD=Math.abs(P(&#x27;tlead&#x27;,1.5));+var PT=P(&#x27;pt&#x27;,5), DT=P(&#x27;dt&#x27;,0.7), CT=P(&#x27;ct&#x27;,0.2), ST=P(&#x27;st&#x27;,0);+var LOGO_PK=Math.max(0,Math.min(1,P(&#x27;logo&#x27;,80)/100));+var LLEAD=Math.abs(P(&#x27;llead&#x27;,0.5)), TLEAD=Math.abs(P(&#x27;tlead&#x27;,1.5)); var OV=Q.get(&#x27;ov&#x27;)!==&#x27;0&#x27;, DO_INTRO=Q.get(&#x27;intro&#x27;)!==&#x27;0&#x27;; var BG=[0.051,0.067,0.090];