v4
This commit is contained in:
@@ -83,6 +83,8 @@
|
||||
if(k===0)ctx.moveTo(x,y);else ctx.lineTo(x,y);
|
||||
}ctx.closePath();}
|
||||
function frame(now){raf=requestAnimationFrame(frame);if(document.hidden||now-last<30)return;last=now;
|
||||
// DONA_WAVES_V1 : ne pas dessiner une orbe cachée; bascule possible à chaud.
|
||||
if(window.DonaWaves && window.DonaWaves.isActive())return;
|
||||
const mode=root.dataset.familyMode||'idle';const speed=mode==='listening'?1.7:mode==='thinking'?1.38:mode==='speaking'?1.5:.75;
|
||||
if(!reduce)phase+=.024*speed;
|
||||
ctx.clearRect(0,0,w,h);ctx.save();ctx.translate(w/2,h/2);const r=Math.min(w,h)*.33;
|
||||
|
||||
Reference in New Issue
Block a user