FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
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.
   
Syntax  
screen.width
screen.height
   
Usage   Web & Application
   
 
 






   
 
Updated: Fri Jul 15 16:36:07 PDT 2005
 
 








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