a port of the Processing Visualization Language
Name

online

Examples
if(online) {  // of "if (online == true)"
  ellipse(50, 50, 60, 60);
} else {
  line(0, 0, 100, 100);
  line(100, 0, 0, 100);
}
Description Confirms if a Processing program is running inside a web browser. This variable is "true" if the program is online and "false" if not.
Syntax
online
Usage Web

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub