Method: TexPlay#circle

Defined in:
lib/texplay/c_function_docs.rb

#circle(center_x, center_y, radius, options = {}) ⇒ Gosu::Image

Note:

:thickness not implemented for circle.

Draw a circle.

Parameters:

  • center_x (Number)

    Horizontal center.

  • center_y (Number)

    Vertical center.

  • radius (Number)

    Radius.

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :fill (Boolean) — default: false

    Whether to fill in the shape.

  • :filled (Boolean) — default: false

    Synonym for :fill

  • :alpha_blend (Boolean) — default: false

    Alpha-blend instead of overwrite.

  • :texture (Gosu::Image)

    Texture to use instead of a flat colour.

  • :mode (Symbol) — default: :copy

    Drawing mode to use.

  • :color (Gosu::Color, Array<Float>, Symbol) — default: :white

    Colour to apply to the drawing action.

  • :color_control (Proc, Hash)

    Effect to apply to the drawing action.

Returns:



25
26
# File 'lib/texplay/c_function_docs.rb', line 25

def circle(center_x, center_y, radius, options = {})
end