class

Game::Ring

Inherits Game::Shape < Reference < Object

Constructors

new(center_x = nil, center_y = nil, outer_radius = nil, x = nil, y = nil, size = nil, inner_radius : Float32 | Int32 = 0, start_angle : Float32 | Int32 = 0, end_angle : Float32 | Int32 = 360, segments : Int32 = 0, color = nil, filled = Shape::FILLED)
Source

Instance methods

center_x
Source
center_x=(center_x : Int32 | Float32)
Source
center_y
Source
center_y=(center_y : Int32 | Float32)
Source
draw_filled(parent_x = 0, parent_y = 0)
Source
draw_outlined(parent_x = 0, parent_y = 0)
Source
end_angle
Source
end_angle=(end_angle : Int32 | Float32)
Source
height
Source
height=(height)
Source
inner_radius
Source
inner_radius=(inner_radius : Int32 | Float32)
Source
outer_radius
Source
outer_radius=(outer_radius : Int32 | Float32)
Source
segments
Source
segments=(segments : Int32)
Source
start_angle
Source
start_angle=(start_angle : Int32 | Float32)
Source
width
Source
width=(width)
Source
x=(x)
Source
y=(y)
Source