Method: Processing::GraphicsContext#pushMatrix
- Defined in:
- lib/processing/graphics_context.rb
#pushMatrix(&block) ⇒ Object
Pushes the current transformation matrix to stack.
2297 2298 2299 2300 2301 2302 2303 |
# File 'lib/processing/graphics_context.rb', line 2297 def pushMatrix(&block) assertDrawing__ @matrixStack__.push @painter__.matrix block.call if block ensure popMatrix if block end |