class

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)
Source

Instance methods

draw_filled(parent_x = 0, parent_y = 0)
Source
draw_outlined(parent_x = 0, parent_y = 0)
Source
height
Source
height=(height : Int32 | Float32)
Source
origin
Source
origin=(origin : Vector)
Source
rotation
Source
rotation=(rotation : Int32 | Float32)
Source
width
Source
width=(width : Int32 | Float32)
Source
x=(x : Int32 | Float32)
Source
y=(y : Int32 | Float32)
Source