2023-09-26 12:28:28 +02:00

13 lines
237 B
Plaintext

void setup() {
size(200, 200);
background(255);
}
void draw() {
background(255);
// first line to center
line(mouseX, mouseY, 200/2, 200/2);
// second line from center
line(200/2, 200/2, 100+100-mouseX, 100+100-mouseY);
}