class Game::Rectangle
- Game::Rectangle
- Game::Shape
- Reference
- Object
Direct Known Subclasses
Defined in:
game/shapes/rectangle.crConstructors
Instance Method Summary
- #draw_filled(parent_x = 0, parent_y = 0)
- #draw_outlined(parent_x = 0, parent_y = 0)
- #height : Int32 | Float32
- #height=(height : Int32 | Float32)
- #origin : Vector
- #origin=(origin : Vector)
- #rotation : Int32 | Float32
- #rotation=(rotation : Int32 | Float32)
- #width : Int32 | Float32
- #width=(width : Int32 | Float32)
- #x : Int32 | Float32
- #x=(x : Int32 | Float32)
- #y : Int32 | Float32
- #y=(y : Int32 | Float32)
Instance methods inherited from class Game::Shape
color : Color
color,
color=(color : Color)
color=,
draw(image : Image, parent_x = 0, parent_y = 0)draw(parent_x = 0, parent_y = 0) draw, draw_filled(image : Image, parent_x = 0, parent_y = 0)
draw_filled(parent_x = 0, parent_y = 0) draw_filled, draw_outlined(image : Image, parent_x = 0, parent_y = 0)
draw_outlined(parent_x = 0, parent_y = 0) draw_outlined, filled=(filled : Bool) filled=, filled? : Bool filled?, height height, height=(_height) height=, update(_frame_time) update, width width, width=(_width) width=, x x, x=(_x) x=, y y, y=(_y) y=
Constructor methods inherited from class Game::Shape
new(color, filled : Bool = FILLED)
new
Constructor Detail
def self.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)
#