Method: Processing::GraphicsContext#scale

Defined in:
lib/processing/graphics_context.rb

#scale(s) ⇒ nil #scale(x, y) ⇒ nil #scale(x, y, z) ⇒ nil

Applies scale matrix to current transformation matrix.

Parameters:

  • s (Numeric)

    horizontal and vertical scale

  • x (Numeric)

    horizontal scale

  • y (Numeric) (defaults to: nil)

    vertical scale

  • z (Numeric) (defaults to: 1)

    depth scale

Returns:

  • (nil)

    nil

See Also:



2130
2131
2132
2133
2134
# File 'lib/processing/graphics_context.rb', line 2130

def scale(x, y = nil, z = 1)
  assertDrawing__
  @painter__.scale x, (y || x), z
  nil
end