FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
processing/java/libraries/pdf/examples/ManyPDFs/ManyPDFs.pde at master · devhci/processing · GitHub
devhci
processing
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
processing
/
java
/
libraries
/
pdf
/
examples
/
ManyPDFs
/
ManyPDFs.pde
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (30 loc) · 586 Bytes
Breadcrumbs
processing
/
java
/
libraries
/
pdf
/
examples
/
ManyPDFs
/
ManyPDFs.pde
Copy path
File metadata and controls
38 lines (30 loc) · 586 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Many PDFs.
*
* Saves one PDF file each each frame while the mouse is pressed.
* When the mouse is released, the PDF creation stops.
*/
import
processing.pdf.*
;
boolean
savePDF
=
false
;
void
setup
() {
size
(
600
,
600
);
frameRate
(
24
);
}
void
draw
() {
if
(savePDF
==
true
) {
beginRecord
(
PDF
,
"
lines
"
+
frameCount
+
"
.pdf
"
);
}
background
(
255
);
stroke
(
0
,
20
);
strokeWeight
(
20.0
);
line
(
mouseX
,
0
,
width
-
mouseY
,
height
);
if
(savePDF
==
true
) {
endRecord
();
}
}
void
mousePressed
() {
savePDF
=
true
;
}
void
mouseReleased
() {
savePDF
=
false
;
}
Back
|
FazBrowse Home
|
New Git URL