Method: Processing::GraphicsContext#createGraphics

Defined in:
lib/processing/graphics_context.rb

#createGraphics(width, height, pixelDensity = 1) ⇒ Graphics

Creates a new off-screen graphics context object.

Parameters:

  • width (Numeric)

    width of graphics image

  • height (Numeric)

    height of graphics image

  • pixelDensity (Numeric) (defaults to: 1)

    pixel density of graphics image

Returns:

See Also:



3232
3233
3234
# File 'lib/processing/graphics_context.rb', line 3232

def createGraphics(width, height, pixelDensity = 1)
  Graphics.new width, height, pixelDensity
end