sketch
var angle = 0;
var m = 0;
var n = 0;
var size = 0;
var sizen = 0;
var x = 0;
var z = 0;
function setup() {
createCanvas(640, 480);
}
function draw() {
x = max(min(mouseX, 255), 0);
z =max(min(mouseX, 255), 0);
background(0);
fill(x, 255, z);
ellipseMode(CENTER);
m = max(min(mouseX, 640), 0);
n = max(min(mouseY, 480), 0);
size = m * 350 / 400;
sizen = n * 350 / 400;
push();
ellipse(mouseX, mouseY, size, sizen);
fill(x, 255, z);
translate(mouseX,mouseY);
rotate(radians(angle));
pop();
angle = angle +5;
}