Source of: Flowing Particles, by Claude Sonnet 4.5
1 lines, no comments ยท 366 tokens, written in 11 seconds for $0.0063
1 let particles = []; function setup() { createCanvas(800, 600); for(let i = 0; i < 200; i++) { particles.push({ x: random(width), y: random(height), vx: random(-1, 1), vy: random(-1, 1), size: random(3, 8), hue: random(360), alpha: random(150, 255) }); } colorMode(HSB, 360, 100, 100, 255); } function draw() { background(0, 0, 0, 25); noStroke(); for(let p of particles) { fill(p.hue, 80, 100, p.alpha); circle(p.x, p.y, p.size); p.x += p.vx + sin(frameCount * 0.01 + p.y * 0.01) * 2; p.y += p.vy + cos(frameCount * 0.01 + p.x * 0.01) * 2; p.hue = (p.hue + 0.5) % 360; if(p.x < 0) p.x = width; if(p.x > width) p.x = 0; if(p.y < 0) p.y = height; if(p.y > height) p.y = 0; } }