xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(0,0,0);
}
function draw() {
if(mouseIsPressed){
let r = map(mouseX, 0, width, 0, 255);
let g = map(mouseY, 0, height, 0, 255);
let b = map(mouseX + mouseY, 0, width + height, 0, 255);
fill(mouseX, mouseY, 200);
noStroke();
circle(mouseX, mouseY, 40);
}
}