Project 14 tweaking with the arduino code

i am trying to do the code for the project and i ran into a problem that the size() variable will not work with int inside of it in the processing code. How can i fix this to continue the code? :confused:

I think you mean Project 14 (Tweaking the Arduino Logo) from the Arduino Projects Book that comes with the Official Arduino Starter Kit.

I think you want "setSize()" rather than "size()"

surface.setSize (logo.width, logo.height);

Does that work?

Also note that setSize() is a function, not a variable. It takes an integer datatype as an argument (assuming it works).

Actually, I'm a bit confused now.

I did this project a while ago with the old starter kit. But the code in my old book looks different than the code for the new kit.

The old book just said:

size(logo.width, logo.height);

The new book says:

surface.setSize (logo.width, logo.height);

Can you post the processing code that you are using?