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