Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (56 sloc) 1.61 KB
void setup() {
size(750, 350);
pixelDensity(displayDensity());
stroke(255);
}
void draw() {
background(128);
// x = 0のとき
line(0, 0, mouseX, mouseY);
line(0, 50, mouseX, mouseY);
line(0, 150, mouseX, mouseY);
line(0, 200, mouseX, mouseY);
line(0, 250, mouseX, mouseY);
line(0, 300, mouseX, mouseY);
line(0, 350, mouseX, mouseY);
// x = 150のとき
line(150, 0, mouseX, mouseY);
line(150, 50, mouseX, mouseY);
line(150, 150, mouseX, mouseY);
line(150, 200, mouseX, mouseY);
line(150, 250, mouseX, mouseY);
line(150, 300, mouseX, mouseY);
line(150, 350, mouseX, mouseY);
// x = 300のとき
line(300, 0, mouseX, mouseY);
line(300, 50, mouseX, mouseY);
line(300, 150, mouseX, mouseY);
line(300, 200, mouseX, mouseY);
line(300, 250, mouseX, mouseY);
line(300, 300, mouseX, mouseY);
line(300, 350, mouseX, mouseY);
// x = 450のとき
line(450, 0, mouseX, mouseY);
line(450, 50, mouseX, mouseY);
line(450, 150, mouseX, mouseY);
line(450, 200, mouseX, mouseY);
line(450, 250, mouseX, mouseY);
line(450, 300, mouseX, mouseY);
line(450, 350, mouseX, mouseY);
// x = 600のとき
line(600, 0, mouseX, mouseY);
line(600, 50, mouseX, mouseY);
line(600, 150, mouseX, mouseY);
line(600, 200, mouseX, mouseY);
line(600, 250, mouseX, mouseY);
line(600, 300, mouseX, mouseY);
line(600, 350, mouseX, mouseY);
// x = 750のとき
line(750, 0, mouseX, mouseY);
line(750, 50, mouseX, mouseY);
line(750, 150, mouseX, mouseY);
line(750, 200, mouseX, mouseY);
line(750, 250, mouseX, mouseY);
line(750, 300, mouseX, mouseY);
line(750, 350, mouseX, mouseY);
}