FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
    Examples \ Tutorials \ Courses & Workshops
 
   
 
 
Examples for Processing (BETA) version 91+. If you have a previous version, use the examples included with your software. If you see any errors or have comments, please let us know.



Statements and Comments
by REAS <http://reas.com>

Statements are the elements that make up programs. The ";" (semi-colon) symbol is used to end statements. It is called the "statement terminator." Comments are used for making notes to help people better understand programs. A comment begins with two forward slashes ("//").

Created 1 September 2002

   
// Statements and Comments 
// by REAS <http://reas.com> 

// The size function is a statement that tells the computer 
// how large to make the window. 
// Each function statement has zero or more parameters. 
// Parameters are data passed into the function 
// and used as values for specifying what the computer will do. 
size(200, 200); 
 
// The background function is a statement that tells the computer 
// which color to make the background of the window 
background(102); 
 







   
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info