Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (18 sloc) 329 Bytes
void setup() {
size(750, 350);
pixelDensity(displayDensity());
stroke(255);
}
void draw() {
background(128);
for (int x = 0; x <= width; x += 150) {
for (int y = 0; y <= height; y += 50) {
line(x, y, mouseX, mouseY);
}
}
}
void keyPressed() {
if (key == 's') {
saveFrame("sketch04.jpg");
}
}