Game::Rectangle
Inherits Game::Shape < Reference < Object
Constructors
new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0, width : Float32 | Int32 = 1, height : Float32 | Int32 = 1, rotation : Float32 | Int32 = 0, origin : ::Game::Vector = Vector.new, color = nil, filled = Shape::FILLED)
SourceInstance methods
draw_filled(parent_x = 0, parent_y = 0)
Sourcedraw_outlined(parent_x = 0, parent_y = 0)
Sourceheight
Sourceheight=(height : Int32 | Float32)
Sourceorigin
Sourceorigin=(origin : Vector)
Sourcerotation
Sourcerotation=(rotation : Int32 | Float32)
Sourcewidth
Sourcewidth=(width : Int32 | Float32)
Sourcex=(x : Int32 | Float32)
Sourcey=(y : Int32 | Float32)
Source