xxxxxxxxxx
let x = 0;
let y = 0;
let ang = 20;
let col = 0;
let moveC = 40;
function setup() {
createCanvas(windowWidth, windowHeight);
angleMode(DEGREES);
colorMode(RGB);
}
function draw() {
push();
colorMode(RGB);
background(random(100, 120), random(200, 50), random(100, 255), 5);
pop();
stroke(50, 50, 20);
col += moveC;
fill(col + 25, 35, 50);
if (col >= 200 || col < 0) {
moveC = moveC * -1;
}
translate(width/2, height/2);
rotate(x);
x+=1;
for (i = 0; i < 360; i += 13) {
ellipse(width / 40 + cos(i++) * width / (800 / 144), width / 40 + sin(i++) * width / (800 / 144), width / 40 + mouseX, width / 40 -mouseY);
}
}