13 lines, 6 of them comments ยท 189 tokens, written in 6 seconds for $0.0002


 1  // Basic p5.js Template
 2  function setup() {
 3    createCanvas(400, 400); // Create canvas 400x400 pixels
 4    background(220); // Light gray background
 5  }
 6  
 7  function draw() {
 8    // Drawing loop runs continuously
 9    if (mouseIsPressed) {
10      fill(random(255), random(255), random(255)); // Random color
11      ellipse(mouseX, mouseY, 50, 50); // Draw circle at mouse position
12    }
13  }