GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing processing-r.github.io — pushMatrix \ Language (API)

Cover
Reference
Tutorials
Bugs
Name

pushMatrix

Examples
fill(255)
rect(0, 0, 50, 50)  # White rectangle

pushMatrix()
translate(30, 20)
fill(0)
rect(0, 0, 50, 50)  # Black rectangle
popMatrix()

fill(100)
rect(15, 10, 50, 50)  # Gray rectangle
Description Pushes the current transformation matrix onto the matrix stack. Understanding pushMatrix() and popMatrix() 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 functions and may be embedded to control the scope of the transformations.
Syntax
pushMatrix()
Related popMatrix
translate
rotate
rotateX
rotateY
rotateZ
Creative Commons License
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.