Method: Gosu.scale

Defined in:
rdoc/gosu.rb

.scale(scale_x, scale_y = scale_x) ⇒ void .scale(scale_x, scale_y, around_x, around_y) ⇒ void

This method returns an undefined value.

Scales all drawing operations inside the block.

Parameters:

  • scale_x (Float)

    the horizontal scaling factor.

  • scale_y (Float)

    the vertical scaling factor.

  • around_x (Float)

    the X coordinate of the scaling origin.

  • around_y (Float)

    the Y coordinate of the scaling origin.

Yields:

  • rendering code.

See Also:



1255
# File 'rdoc/gosu.rb', line 1255

def scale(scale_x, scale_y, around_x, around_y); end