Here's the code:
function setup() { createCanvas(500,500); background(240); } function draw() { fill(abs(255-mouseX-mouseY),(mouseX*mouseY)%255,mouseY); circle(mouseX,mouseY,abs(mouseY/10-mouseX/10)+10); }