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  

push()

   
Examples  
rect(0, 0, 50, 50);   //White rectangle 
push(); 
translate(30, 20); 
fill(0);  
rect(0, 0, 50, 50);   //Black rectangle 
pop(); 
fill(102);  
rect(15, 10, 50, 50); //Gray rectangle 
Description   Pushes the current transformation matrix onto the matrix stack. Understanding push() and pop() requires understanding the concept of a matrix stack. The push() function saves the current coordinate system to the stack and pop() restores the prior coordinate system. push() and pop() are used in conjuction with the other transformation methods and may be embedded to control the scope of the transformations.
   
Syntax  
push()
   
Returns   None
   
Usage   Web & Application
   
Related   pop()
translate()
rotate()
rotateX()
rotateY()
rotateZ()
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas