xxxxxxxxxx
64
function setup() {
createCanvas(500, 500);
}
function draw() {
background(247,192,129);
mouseX = mouseX + 50
mouseY = mouseY + 50
let x = 0;
for (let i = 0; i < 7; i++){
fill(mouseX,mouseY,0);
triangle(x,460,x + 40,410,x + 80,460);
x = x + 105
}
x = 0;
for(let i = 0; i<7; i++){
fill(mouseX, mouseY,150);
triangle(x,380,x + 40, 330, x + 80,380);
x = x + 105
}
x = 0;
for(let i = 0; i<7; i++){
fill(mouseX, mouseY,0);
triangle(x,300,x + 40, 250, x + 80,300);
x = x + 105
}
x = 0;
for(let i = 0; i<7; i++){
fill(mouseX, mouseY,190);
triangle(x,220,x + 40, 170, x + 80,220);
x = x + 105
}
x = 0;
for(let i = 0; i<7; i++){
fill(mouseX, mouseY,0);
triangle(x,140,x + 40, 90, x + 80,140);
x = x + 105
}
x = 0;
for(let i = 0; i<7; i++){
fill(mouseX, mouseY,240);
triangle(x,60,x + 40, 10, x + 80,60);
x = x + 105
}
}