File tree Expand file tree Collapse file tree 2 files changed +26
-27
lines changed
src/processing/mode/java/preproc Expand file tree Collapse file tree 2 files changed +26
-27
lines changed Original file line number Diff line number Diff line change @@ -589,9 +589,9 @@ public void exitMethodDeclaration(ProcessingParser.MethodDeclarationContext ctx)
589
589
// Insert at start of method or after annoation
590
590
if (!hasVisibilityModifier ) {
591
591
if (annoationPoint == null ) {
592
- insertBefore (possibleModifiers .getStart (), " public " );
592
+ insertBefore (possibleModifiers .getStart (), "public " );
593
593
} else {
594
- insertAfter (annoationPoint .getStop (), " public " );
594
+ insertAfter (annoationPoint .getStop (), "public " );
595
595
}
596
596
}
597
597
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import processing.data.*;
3
3
import processing.event.*;
4
4
import processing.opengl.*;
5
5
6
- import processing.pdf.*;
7
-
8
6
import java.util.HashMap;
9
7
import java.util.ArrayList;
10
8
import java.io.File;
@@ -16,33 +14,34 @@ import java.io.IOException;
16
14
17
15
public class whitespace extends PApplet {
18
16
19
- void setup() {
20
- size(640, 360) ;
21
- stroke(255);
22
- noFill();
23
- }
17
+ public void setup() {
18
+ /* size commented out by preprocessor */ ;
19
+ stroke(255);
20
+ noFill();
21
+ }
24
22
25
- void drawBezier(int i) {
26
- bezier(
27
- mouseX - (i/2.0 ),
28
- 40+i,
29
- 410,
30
- 20,
31
- 440,
32
- 300,
33
- 240 - (i/16.0 ),
34
- 300 + (i/8.0 )
35
- );
36
- }
23
+ public void drawBezier(int i) {
24
+ bezier(
25
+ mouseX - (i/2.0f ),
26
+ 40+i,
27
+ 410,
28
+ 20,
29
+ 440,
30
+ 300,
31
+ 240 - (i/16.0f ),
32
+ 300 + (i/8.0f )
33
+ );
34
+ }
37
35
38
- void draw() {
39
- background(0);
40
- for (int i = 0; i < 200; i += 20) {
41
- drawBezier(i);
42
- }
36
+ public void draw() {
37
+ background(0);
38
+ for (int i = 0; i < 200; i += 20) {
39
+ drawBezier(i);
43
40
}
41
+ }
42
+
44
43
45
- public void settings() { size(640,360); }
44
+ public void settings() { size(640, 360); }
46
45
47
46
static public void main(String[] passedArgs) {
48
47
String[] appletArgs = new String[] { "whitespace" };
You can’t perform that action at this time.
0 commit comments