Write a program that splatters paint on the screen every DELAY milliseconds.

To splatter paint, pick a random color and draw CIRCLES_PER_SPLATTER circles of that color at random places on the screen. The radius of each circle should be a random value between MIN_RADIUS and MAX_RADIUS.

Remember to use helper functions.

// Helper function to generate a random color

function randomColor() {
let r = Math.floor(Math.random() * 256);
let g = Math.floor(Math.random() * 256);
let b = Math.floor(Math.random() * 256);
return `rgb(${r}, ${g}, ${b})`;
}

// Helper function to generate a random radius
function randomRadius(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}

// Helper function to generate a random position
function randomPosition(maxX, maxY) {
let x = Math.floor(Math.random() * maxX);
let y = Math.floor(Math.random() * maxY);
return {x, y};
}

// Main function to splatter paint
function splatterPaint(delay, circlesPerSplatter, minRadius, maxRadius, maxX, maxY) {
setInterval(() => {
for (let i = 0; i < circlesPerSplatter; i++) {
let color = randomColor();
let radius = randomRadius(minRadius, maxRadius);
let {x, y} = randomPosition(maxX, maxY);
drawCircle(x, y, radius, color);
}
}, delay);
}

// Call the main function
splatterPaint(1000, 10, 5, 20, 500, 500);