兄と私
function setup() {
createCanvas(600, 600);
background(174, 222, 220);
centerXa = 0;
centerYa = 0;
centerXb = centerXa;
centerYb = centerYa;
}
function draw() {
centerXa = centerXa + random(500,600,1200,300);
centerYa = centerYa + random(600,450,467,300);
stroke(frameCount%255,182,193,300);
line(centerXa, centerYa,centerXb,centerYb);
}