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  

online()

   
Examples  
boolean connected = online(); 
if(connected) { 
  ellipse(25, 25, 50, 50); 
} else { 
  line(0, 0, 100, 100); 
  line(100, 0, 0, 100); 
} 

Description   Confirms if a Processing program is running in a web browser. Returns "true" if running in a web browser and returns "false" if not.
   
Syntax  
online()
   
Returns   Boolean
   
Usage   Web
   
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas