Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

popMatrix()

Examples
example pic
Viereck(0, 0, 50, 50);   //White rectangle
pushMatrix();
verschieb(30, 20);
Fuellfarb(0);  
Viereck(0, 0, 50, 50);   //Black rectangle
popMatrix();
Fuellfarb(102);  
Viereck(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()
Parameters
Usage Web & Application
Related pushMatrix()
Stefan Baltensperger 2009

Creative Commons License