Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…

void setup() { | |
size(960, 540); | |
pixelDensity(displayDensity()); | |
background(255); | |
strokeWeight(10); | |
stroke(0, 50); | |
} | |
void draw() { | |
/* 1フレーム前のマウスの座標から | |
現在のマウスの座標まで線を引く */ | |
line(pmouseX, pmouseY, mouseX, mouseY); | |
} | |
void keyPressed() { | |
if (key == 's') { | |
saveFrame("sketch02.jpg"); | |
} else if (key == ' ') { | |
background(255); | |
} | |
} |