Skip to content

176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.

fix: draw the Noise-Based Motion blob with 96 points so the wider ripple stays smooth

matin52383d9d6ac4
diff --git a/animations/06-3d-advanced/noise-based-motion/index.html b/animations/06-3d-advanced/noise-based-motion/index.html
index 1a68669d..05334b91 100644
--- a/animations/06-3d-advanced/noise-based-motion/index.html
+++ b/animations/06-3d-advanced/noise-based-motion/index.html
@@ -191,7 +191,7 @@ const cvs=document.getElementById('cvs');const ctx=cvs.getContext('2d');
const stage=document.getElementById('stage');const slowTog=document.getElementById('slow-tog');
let W,H,paused=false,raf=null,last=null,t=0;
let MODE='grid',SCALE=.008,SPD=.5,AMP=12,SPACE=48,COLOR='#58a6ff';
-const VERTS=48; // 48 points already draw a smooth edge
+const VERTS=96; // 96 points keep the edge smooth even where the ripple is sharpest
// The blob reads the noise along a circle of radius RING x SCALE (the inner ring RING_IN x SCALE). A tiny circle sees almost
// one value, so the whole edge only swells and shrinks; this one is wide enough for about two lobes at the default size.
const RING=48,RING_IN=32;