class

Game::Triangle

Inherits Game::Shape < Reference < Object

Constructors

new(x1 : Float32 | Int32, y1 : Float32 | Int32, x2 : Float32 | Int32, y2 : Float32 | Int32, x3 : Float32 | Int32, y3 : Float32 | Int32, color = nil, filled = Shape::FILLED)
Source

Instance methods

draw
Source
draw_filled(parent_x = 0, parent_y = 0)
Source
draw_outlined(parent_x = 0, parent_y = 0)
Source
height
Source
height=(height)

TODO:

Source
width
Source
width=(width)

TODO:

Source
x1=(x1 : Int32 | Float32)
Source
x2=(x2 : Int32 | Float32)
Source
x3=(x3 : Int32 | Float32)
Source
x=(x)

TODO:

Source
y1=(y1 : Int32 | Float32)
Source
y2=(y2 : Int32 | Float32)
Source
y3=(y3 : Int32 | Float32)
Source
y=(y)

TODO:

Source