class Game::Triangle
- Game::Triangle
- Game::Shape
- Reference
- Object
Defined in:
game/shapes/triangle.crConstructors
Instance Method Summary
- #draw
- #draw_filled(parent_x = 0, parent_y = 0)
- #draw_outlined(parent_x = 0, parent_y = 0)
- #height
-
#height=(height)
TODO
- #width
-
#width=(width)
TODO
- #x
- #x1 : Int32 | Float32
- #x1=(x1 : Int32 | Float32)
- #x2 : Int32 | Float32
- #x2=(x2 : Int32 | Float32)
- #x3 : Int32 | Float32
- #x3=(x3 : Int32 | Float32)
-
#x=(x)
TODO
- #y
- #y1 : Int32 | Float32
- #y1=(y1 : Int32 | Float32)
- #y2 : Int32 | Float32
- #y2=(y2 : Int32 | Float32)
- #y3 : Int32 | Float32
- #y3=(y3 : Int32 | Float32)
-
#y=(y)
TODO
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(x1 : Float32 | Int32, y1 : Float32 | Int32, x2 : Float32 | Int32, y2 : Float32 | Int32, x3 : Float32 | Int32, y3 : Float32 | Int32, color = nil, filled = Shape::FILLED)
#