processing-eclipse icon indicating copy to clipboard operation
processing-eclipse copied to clipboard

Issue with rect?

Open derekt opened this issue 12 years ago • 0 comments

The following line of code:

rect((float)Xcoord, (float)Ycoord, (float)Xsize, (float)Ysize, (float)Rounding);

(where all arguments are integers) causes the following error in the Eclipse plugin (though the applet runs):

The method rect(float, float, float, float) in the type PApplet is not applicable for the arguments (float, float, float, float, float)

It works fine in the Processing IDE. It seems to be something to do with calling rect() with more than 4 arguments. If the code is changed to:

rect((float)Xcoord, (float)Ycoord, (float)Xsize, (float)Ysize);

it does not produce an error.

Additionally, although not strictly an issue per se, given that the documentation lists floats as arguments, calling rect() with integer arguments works fine in the processing IDE, but produces a similar error in the Eclipse plugin.

derekt avatar Nov 21 '13 18:11 derekt