Skip to content

Commit 48be092

Browse files
committed
minor fixes
1 parent bbc3def commit 48be092

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

java/libraries/dxf/examples/SimpleExport/SimpleExport.pde

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
import processing.dxf.*;
10-
boolean record = false;
10+
boolean isRecording = false;
1111

1212
void setup() {
1313
size(400, 400, P3D);
@@ -16,7 +16,7 @@ void setup() {
1616
}
1717

1818
void draw() {
19-
if (record == true) {
19+
if (isRecording == true) {
2020
beginRaw(DXF, "output.dxf"); // Start recording to the file
2121
}
2222
lights();
@@ -34,15 +34,15 @@ void draw() {
3434
}
3535
}
3636
}
37-
if (record == true) {
37+
if (isRecording == true) {
3838
endRaw();
39-
record = false; // Stop recording to the file
39+
isRecording = false; // Stop recording to the file
4040
}
4141
}
4242

4343
void keyPressed() {
4444
if (key == 'R' || key == 'r') { // Press R to save the file
45-
record = true;
45+
isRecording = true;
4646
}
4747
}
4848

java/libraries/dxf/src/processing/dxf/RawDXF.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,35 +42,35 @@
4242
* <PRE>
4343
* import processing.dxf.*;
4444
*
45-
* boolean record;
45+
* boolean isRecording;
4646
*
4747
* void setup() {
4848
* size(500, 500, P3D);
4949
* }
5050
*
5151
* void keyPressed() {
5252
* // use a key press so that it doesn't make a million files
53-
* if (key == 'r') record = true;
53+
* if (key == 'r') isRecording = true;
5454
* }
5555
*
5656
* void draw() {
57-
* if (record) {
57+
* if (isRecording) {
5858
* beginRaw(DXF, "output.dxf");
5959
* }
6060
*
6161
* // do all your drawing here
6262
*
63-
* if (record) {
63+
* if (isRecording) {
6464
* endRaw();
65-
* record = false;
65+
* isRecording = false;
6666
* }
6767
* }
6868
* </PRE>
6969
* or to use it and be able to control the current layer:
7070
* <PRE>
7171
* import processing.dxf.*;
7272
*
73-
* boolean record;
73+
* boolean isRecording;
7474
* RawDXF dxf;
7575
*
7676
* void setup() {
@@ -79,25 +79,25 @@
7979
*
8080
* void keyPressed() {
8181
* // use a key press so that it doesn't make a million files
82-
* if (key == 'r') record = true;
82+
* if (key == 'r') isRecording = true;
8383
* }
8484
*
8585
* void draw() {
86-
* if (record) {
86+
* if (isRecording) {
8787
* dxf = (RawDXF) createGraphics(width, height, DXF, "output.dxf");
8888
* beginRaw(dxf);
8989
* }
9090
*
9191
* // do all your drawing here, and to set the layer, call:
92-
* // if (record) {
92+
* // if (isRecording) {
9393
* // dxf.setLayer(num);
9494
* // }
9595
* // where 'num' is an integer.
9696
* // the default is zero, or you can set it to whatever.
9797
*
98-
* if (record) {
98+
* if (isRecording) {
9999
* endRaw();
100-
* record = false;
100+
* isRecording = false;
101101
* dxf = null;
102102
* }
103103
* }

java/libraries/svg/examples/SingleFrameFromAnimation/SingleFrameFromAnimation.pde

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
import processing.svg.*;
1010

11-
boolean record;
11+
boolean isRecording;
1212

1313
void setup() {
1414
size(400, 400);
1515
}
1616

1717
void draw() {
18-
if (record) {
18+
if (isRecording) {
1919
// Note that #### will be replaced with the frame number. Fancy!
2020
beginRecord(SVG, "frame-####.svg");
2121
}
@@ -24,13 +24,13 @@ void draw() {
2424
background(255);
2525
line(mouseX, mouseY, width/2, height/2);
2626

27-
if (record) {
27+
if (isRecording) {
2828
endRecord();
29-
record = false;
29+
isRecording = false;
3030
}
3131
}
3232

3333
// Use a mouse press so thousands of files aren't created
3434
void mousePressed() {
35-
record = true;
35+
isRecording = true;
3636
}

java/libraries/svg/examples/ThreeDGeometry/ThreeDGeometry.pde

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717

1818
import processing.svg.*;
1919

20-
boolean record;
20+
boolean isRecording;
2121

2222
void setup() {
2323
size(500, 500, P3D);
2424
}
2525

2626
void draw() {
27-
if (record) {
27+
if (isRecording) {
2828
beginRaw(SVG, "output.svg");
2929
}
3030

@@ -35,15 +35,15 @@ void draw() {
3535
rotateY(mouseX/500.0);
3636
box(200);
3737

38-
if (record) {
38+
if (isRecording) {
3939
endRaw();
40-
record = false;
40+
isRecording = false;
4141
}
4242
}
4343

4444
// Hit 'r' to record a single frame
4545
void keyPressed() {
4646
if (key == 'r') {
47-
record = true;
47+
isRecording = true;
4848
}
4949
}

0 commit comments

Comments
 (0)