xxxxxxxxxx
function setup () {
createCanvas (windowWidth, windowHeight);
}
function draw () {
background (84, 167, 255);
//primo segmento
strokeWeight (25);
stroke (255, 249, 84);
line (0, 0, mouseX, mouseY);
//secondo segmento
strokeWeight (30);
stroke (255, 249, 84);
line (mouseX, mouseY, 0, height);
//terzo segmento
strokeWeight (15);
stroke (255, 249, 84);
line (mouseX, mouseY, width, 0);
//quarto segmento
strokeWeight (20);
stroke (255, 249, 84);
line (mouseX, mouseY, width, height);
//quinto segmento
strokeWeight (30);
stroke (255, 249, 84);
line (mouseX, mouseY, width/2, 0);
//ellisse
fill (255, 215, 84);
ellipse (mouseX, mouseY, mouseX/2, mouseX/2);
}