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)
589589 // Insert at start of method or after annoation
590590 if (!hasVisibilityModifier ) {
591591 if (annoationPoint == null ) {
592- insertBefore (possibleModifiers .getStart (), " public " );
592+ insertBefore (possibleModifiers .getStart (), "public " );
593593 } else {
594- insertAfter (annoationPoint .getStop (), " public " );
594+ insertAfter (annoationPoint .getStop (), "public " );
595595 }
596596 }
597597
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import processing.data.*;
33import processing.event.*;
44import processing.opengl.*;
55
6- import processing.pdf.*;
7-
86import java.util.HashMap;
97import java.util.ArrayList;
108import java.io.File;
@@ -16,33 +14,34 @@ import java.io.IOException;
1614
1715public class whitespace extends PApplet {
1816
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+ }
2422
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+ }
3735
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);
4340 }
41+ }
42+
4443
45- public void settings() { size(640,360); }
44+ public void settings() { size(640, 360); }
4645
4746 static public void main(String[] passedArgs) {
4847 String[] appletArgs = new String[] { "whitespace" };
You can’t perform that action at this time.
0 commit comments