a port of the Processing Visualization Language
Name

screen

Examples
void setup() {
 size(screen.width, screen.height);
}

void draw() {
 line(0, 0, screen.width, screen.height);
}
Description

System variable which stores the dimensions of the computer screen. For example, if the current screen resolution is 1024x768, screen.width is 1024 and screen.height is 768. These dimensions are useful when exporting full-screen applications.

Usage Web & Application

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

Creative Commons License
Fork me on GitHub