Re-adding Topics to SVN

This commit is contained in:
Casey Reas
2011-09-05 23:58:47 +00:00
parent 4fc6dcca86
commit 391c79c2b6
219 changed files with 31093 additions and 0 deletions
@@ -0,0 +1,25 @@
/**
* Save One Image
*
* The save() function allows you to save an image from the
* display window. In this example, save() is run when a mouse
* button is pressed. The image "line.tif" is saved to the
* same folder as the sketch's program file.
*/
void setup()
{
size(200, 200);
}
void draw()
{
background(204);
line(0, 0, mouseX, height);
line(width, 0, 0, mouseY);
}
void mousePressed()
{
save("line.tif");
}