xxxxxxxxxx
let j = 200
let k = 200
let l = 200
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
noStroke()
}
function draw() {
j = 100 + mouseX/width*200
k = 100 + mouseY/height*200
for (x = 0; x < width; x+=j){
for(y = 0; y < height; y+=k){
for(z=0; z< j; z+=5){
fill(x/width*255,y/height*255,(mouseX+mouseY)/(width+height)*255,z/j*255)
push()
translate(x,y)
rotate((mouseX+mouseY)/(width+height)*TWO_PI)
rect(0,0,j-z,k-z)
pop()
}
}
}
}