class

GSDL::Oval

Inherits GSDL::Collidable < GSDL::Shape < GSDL::Centerable < GSDL::Tweenable < Reference < Object

Constructors

new(radius_x : Num = 16, radius_y : Num = 16, rotation : Num = 0)
Source
new(x : Num = 0, y : Num = 0, origin = {0_f32, 0_f32}, radius_x : Num = 16, radius_y : Num = 16, scale = {1_f32, 1_f32}, rotation : Num = 0, color : Color = Color::White, z_index : Int32 = 0, draw_mode : GSDL::Shape::DrawMode = GSDL::Shape::DrawMode::Fill, border_thickness : Num = 1, border_color : Color = Color::White)
Source

Instance methods

collision_bounding_box

collision bounding box of the collidable object as an FRect

Source
collision_polygon_vertices

For polygons, return the absolute coordinates of the vertices

Source
collision_shape
Source
diameter_x

TODO: add setter

Source
diameter_y

TODO: add setter

Source
fill_indices
Source
fill_vertices
Source
height

TODO: add setter

Source
outline_arc_points
Source
radius_x
radius_x=(value : Num)
Source
radius_y
radius_y=(value : Num)
Source
render_center_x

TODO: add setter

Source
render_center_y

TODO: add setter

Source
render_radius_x
Source
render_radius_y
Source
update_geometry

needs to be called at the end of initialization, and in every #draw method (only if #changed?)

Source
width

TODO: add setter

Source

Nested types