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)
SourceInstance methods
draw
Sourcedraw_filled(parent_x = 0, parent_y = 0)
Sourcedraw_outlined(parent_x = 0, parent_y = 0)
Sourceheight
Sourcewidth
Sourcex1
Sourcex1=(x1 : Int32 | Float32)
Sourcex2
Sourcex2=(x2 : Int32 | Float32)
Sourcex3
Sourcex3=(x3 : Int32 | Float32)
Sourcey1
Sourcey1=(y1 : Int32 | Float32)
Sourcey2
Sourcey2=(y2 : Int32 | Float32)
Sourcey3
Sourcey3=(y3 : Int32 | Float32)
Source