xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {
background(255, 255, 255);
for(let x = 0; x < width; x = x + 30){
if (x >= width/2){
stroke(map(x, 0, width, 0, 255), 0, 0);
}
else{
stroke(0, map(x, 0, width, 0, 255), 227)
}
line(x, 0, mouseX, mouseY);
line(x, height, mouseX, mouseY);
}
strokeWeight(5);
stroke(0, 0, 0);
fill(255, 185, 0);
circle(mouseX, mouseY, 80);
}