mirror of
https://github.com/processing/processing4.git
synced 2026-01-27 18:31:07 +01:00
32 lines
521 B
Plaintext
32 lines
521 B
Plaintext
/**
|
|
* Large Page.
|
|
*
|
|
* Saves one frame as a PDF with a size larger
|
|
* than the screen. When PDF is used as the renderer
|
|
* (the third parameter of size) the display window
|
|
* does not open. The file is saved to the sketch folder.
|
|
* You can open it by "Sketch->Show Sketch Folder."
|
|
*/
|
|
|
|
|
|
import processing.pdf.*;
|
|
|
|
void setup()
|
|
{
|
|
size(2000, 2000, PDF, "Line.pdf");
|
|
}
|
|
|
|
void draw()
|
|
{
|
|
background(255);
|
|
stroke(0, 20);
|
|
strokeWeight(20.0);
|
|
line(200, 0, width/2, height);
|
|
|
|
exit(); // Quit the program
|
|
}
|
|
|
|
|
|
|
|
|