popMatrix() \ Language (API) \ Processing 1.0
Author: Casey Reas & Ben Fry
Description: Processing is an electronic sketchbook for developing ideas. It is a context for learning fundamentals of computer programming within the context of the electronic arts.
Keywords: Processing, Processing, Interactive Media, Electronic Arts, Programming, Java, Ben Fry, Casey Reas

Reference for Processing version 1.5. If you have a previous version, use the reference included with your software. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Javadoc.

Name | ### popMatrix()
Examples |
    rect(0, 0, 50, 50);   //White rectangle
    pushMatrix();
    translate(30, 20);
    fill(0);
    rect(0, 0, 50, 50);   //Black rectangle
    popMatrix();
    fill(102);
    rect(15, 10, 50, 50); //Gray rectangle
Description | Pops the current transformation matrix off the matrix stack. Understanding pushing and popping requires understanding the concept of a matrix stack. The pushMatrix() function saves the current coordinate system to the stack and popMatrix() restores the prior coordinate system. pushMatrix() and popMatrix() are used in conjuction with the other transformation methods and may be embedded to control the scope of the transformations.
Syntax |
    popMatrix()
Returns | None
Usage | Web & Application
Related | pushMatrix()

Updated on August 30, 2010 04:29:39pm EDT