Method: Gosu.render

Defined in:
rdoc/gosu.rb

.render(width, height) { ... } ⇒ Gosu::Image

Records all drawing operations inside the block and returns the result as a new Image.

Parameters:

  • width (Integer)

    the width of the recorded image.

  • height (Integer)

    the height of the recorded image.

  • options (Hash)

Yields:

  • rendering code.

Returns:

See Also:



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

def render(width, height); end