I’m preparing to deliver the Arduino CTC-101 program, which uses Processing to teach programming topics. One of the first modules introduces the size(); function, but it has no effect on my sketch.
The sketch is super-simple: line 1 sets the window size, line 2 draws an ellipse in the centre of the screen. While I do get my ellipse, my window remains 100 x 100 and the ellipse is centred in this 100 x 100 window. Additionally, I’ve tried several of the included example sketches (Array and Array 2D) - they also fail to resize the program window.
Running Processing 3.5 on a MacBook Pro under OSX 10.14.2.
size(400, 200); ellipse(width/2, height/2, width-1, height-1);
While no errors are generated, the size() function does not resize the program window and it does not effect the width or height values. There is a message in the Console: “Could not parse -1 for —display”, which may be related.
Thanks for your help!