Method: Processing::GraphicsContext#translate

Defined in:
lib/processing/graphics_context.rb

#translate(x, y) ⇒ nil #translate(x, y, z) ⇒ nil

Applies translation matrix to current transformation matrix.

Parameters:

  • x (Numeric)

    left/right translation

  • y (Numeric)

    up/down translation

  • y (Numeric)

    forward/backward translation

Returns:

  • (nil)

    nil



1065
1066
1067
1068
1069
# File 'lib/processing/graphics_context.rb', line 1065

def translate(x, y, z = 0)
  assertDrawing__
  @painter__.translate x, y, z
  nil
end