Method: Gosu::Image#draw

Defined in:
rdoc/gosu.rb

#draw(x, y, z = 0, scale_x = 1, scale_y = 1, color = 0xff_ffffff, mode = :default) ⇒ void

This method returns an undefined value.

Draws the image with its top left corner at (x, y).

Parameters:

  • x (Float)

    the X coordinate.

  • y (Float)

    the Y coordinate.

  • z (Float) (defaults to: 0)

    the Z-order.

  • scale_x (Float) (defaults to: 1)

    the horizontal scaling factor.

  • scale_y (Float) (defaults to: 1)

    the vertical scaling factor.

  • color (Gosu::Color, Integer) (defaults to: 0xff_ffffff)
  • mode (:default, :additive) (defaults to: :default)

    the blending mode to use.

See Also:



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

def draw(x, y, z=0, scale_x=1, scale_y=1, color=0xff_ffffff, mode=:default); end