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  

endCamera()

   
Examples  
size(100, 100, P3D); 
noFill(); 
beginCamera(); 
resetMatrix(); 
lookat(0, height/2, 180, width/2, height/2, 0, 0, 1, 0); 
endCamera(); 
translate(50, 50, 0); 
rotateX(-PI/6); 
rotateY(PI/3); 
box(45); 
Description   The beginCamera() and endCamera() functions allow customizing the camera space through calls to transformations such as lookat() etc. This function sets the matrix mode to the camera matrix so calls to applyMatrix() and resetMatrix() affect the camera. beginCamera() should always be used with a following endCamera() and pairs of beginCamera() and endCamera() can not be nested.
   
Syntax  
endCamera()
   
Returns   None
   
Usage   Web & Application
   
Related   camera()
beginCamera()
 
 






   
 
Updated: Fri Jul 15 16:35:38 PDT 2005
 
 








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