FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
processing/java/libraries/svg/src/WriteSVG.java at master · darkcoderrises/processing · GitHub
darkcoderrises
processing
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
processing
/
java
/
libraries
/
svg
/
src
/
WriteSVG.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (25 loc) · 750 Bytes
Breadcrumbs
processing
/
java
/
libraries
/
svg
/
src
/
WriteSVG.java
Copy path
File metadata and controls
35 lines (25 loc) · 750 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
import
processing
.
core
.
PApplet
;
// TODO This is code for testing; remove before final release
public
class
WriteSVG
extends
PApplet
{
// public String sketchRenderer() {
// return "processing.svg.PGraphicsSVG";
// }
// public String sketchOutputPath() {
// return "/Users/fry/Desktop/frame-####.svg";
// }
public
void
settings
() {
size
(
600
,
400
,
SVG
,
desktopPath
(
"frame-####.svg"
));
// frameRate(1);
}
public
void
draw
() {
background
(
random
(
255
));
stroke
(
random
(
255
));
strokeWeight
(
20
);
line
(
random
(
width
),
random
(
height
),
random
(
width
),
random
(
height
));
if
(
frameCount
==
5
)
exit
();
// exit();
}
static
public
void
main
(
String
[]
args
) {
PApplet
.
main
(
new
String
[] {
"WriteSVG"
});
}
}
Back
|
FazBrowse Home
|
New Git URL