Source of: Neon Wave Harmonograph, by Gemini 3 Flash Preview
1 lines, no comments ยท 376 tokens, written in 4 seconds for $0.0012
1 let particles = []; let angle = 0; function setup() { createCanvas(windowWidth, windowHeight); background(0); strokeCap(ROUND); } function draw() { background(0, 20); translate(width / 2, height / 2); noFill(); let iterations = 5; for (let i = 0; i < iterations; i++) { let t = angle + i * 0.1; let x1 = sin(t * 1.2 + mouseX * 0.005) * (width * 0.3) + cos(t * 0.5) * 50; let y1 = cos(t * 0.8 + mouseY * 0.005) * (height * 0.3) + sin(t * 1.3) * 50; let x2 = sin(t * 0.5) * (width * 0.2); let y2 = cos(t * 1.1) * (height * 0.2); stroke(lerpColor(color('#00f2ff'), color('#ff00ff'), (sin(t) + 1) / 2)); strokeWeight(2); line(x1, y1, x2, y2); ellipse(x1, y1, 4, 4); } angle += 0.02; } function windowResized() { resizeCanvas(windowWidth, windowHeight); background(0); }