Hi there,
a few day ago i started working with processig. I got some experience with java and programming visual interfaces. But right now i'm stuck. I changed some lines in my sketch and when i tried to run it these error message appears:
processing.app.SketchException: unexpected token: float at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:326) at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:197) at processing.mode.java.JavaBuild.build(JavaBuild.java:156) at processing.mode.java.JavaBuild.build(JavaBuild.java:135) at processing.mode.java.JavaMode.handleRun(JavaMode.java:176) at processing.mode.java.JavaEditor$20.run(JavaEditor.java:481) at java.lang.Thread.run(Thread.java:662)I read every single line of my sketch but I cant find the damn error - possibly just missing it. Processing IDE highlights this class tab after showing the error:
class Center extends Locatable {
float radius; color c1;
Center(PVector location, int radius) { super(location); this.location = location; this.radius = radius; c1 = color(255, 255, 255, 255); }
void update() { }
void draw() { noStroke(); fill(c1); ellipse(location.x, location.y, radius, radius); }
}The complete sketch with all files and classes can be found here.
Looking forward for any hints,
alex
1