Game::Line
Inherits Game::Shape < Reference < Object
Constants
DEFAULT_THICKNESS = 1
Constructors
new(end_x : Float32 | Int32, end_y : Float32 | Int32, start_x : Float32 | Int32 = 0, start_y : Float32 | Int32 = 0, color = nil, thickness : Float32 | Int32 = DEFAULT_THICKNESS, filled = Shape::FILLED)
SourceInstance methods
color=(value : Int32 | Float32)
Sourcedraw_filled(parent_x = 0, parent_y = 0)
Sourcedraw_line(parent_x = 0, parent_y = 0, color = @color)
Sourcedraw_outlined(parent_x = 0, parent_y = 0)
Sourceend_x
Sourceend_x=(value : Int32 | Float32)
Sourceend_y
Sourceend_y=(value : Int32 | Float32)
Sourceheight
Sourceheight=(height)
Sourcerectangle
Sourcestart_x
Sourcestart_x=(value : Int32 | Float32)
Sourcestart_y
Sourcestart_y=(value : Int32 | Float32)
Sourcethickness
Sourcethickness=(value : Int32 | Float32)
Sourcewidth
Sourcewidth=(width)
Sourcex=(x : Float32 | Int32)
Sourcey=(y : Float32 | Int32)
Source