Processing - Coding in Processing

3 important questions on Processing - Coding in Processing

Explain size(a,b);

Size() specifies the dimensions of the window you want to create and takes two arguments, the width (a) and the height (b).

How do you write comments in your program?

  • You can use double slashes (//) to write on a single line the comment
  • For a comment divided over more lines you can use /* ... */

Why should you get into the habit of writing comments in your code?

  • The more comments you include, the easier it is to revise your program, to understand what you did where in the program and reusing the code later will be easier.
  • The comments force you to know what you did and how your code works.

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo