Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

print()

   
Examples  
print("begin: "); 
float f = 0.3; 
int i = 1024; 
print("f is " + f + " and i is " + 1024); 
String s = " :end"; 
println(s); 
 
// The above code prints the following line: 
// begin: f is 0.3 and i is 1024 :end 
 

Description   Writes to the text area of the Processing environment. This is often helpful for looking at the data a program is producing. The companion function println() works like print(), but creates a new line of text for each call to the function. Individual elements can be separated with quotes ("") and joined with the addition operator (+).
   
Syntax  
print(text)
   
Parameters  
text   any primitive or composite datatype

   
Usage   IDE
   
Related   println()
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas