mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 11:21:06 +01:00
19 lines
241 B
Plaintext
19 lines
241 B
Plaintext
import processing.pdf.*;
|
|
|
|
int getWidth() {
|
|
return 400*2;
|
|
}
|
|
|
|
void setup() {
|
|
size(getWidth(), 400/2);
|
|
}
|
|
|
|
void draw() {
|
|
// Draw something good here
|
|
line(0, 0, width/2, height);
|
|
|
|
// Exit the program
|
|
println("Finished.");
|
|
exit();
|
|
}
|