27 lines, 3 of them comments ยท 323 tokens, written in 9 seconds for $0.0004


 1  function setup() {
 2    createCanvas(400, 400);
 3  }
 4  
 5  function draw() {
 6    background(220);
 7    
 8    // Draw a rotating square
 9    push();
10    translate(width / 2, height / 2);
11    rotate(frameCount * 0.01);
12    rectMode(CENTER);
13    fill(255, 100, 100);
14    rect(0, 0, 100, 100);
15    pop();
16    
17    // Draw pulsing circle
18    let pulse = sin(frameCount * 0.05) * 20;
19    fill(100, 255, 100);
20    ellipse(100, 100, 50 + pulse, 50 + pulse);
21    
22    // Draw random particles
23    if (frameCount % 5 === 0) {
24      fill(random(255), random(255), random(255));
25      ellipse(random(width), random(height), 5, 5);
26    }
27  }