GSDL::Line
Inherits GSDL::Shape < GSDL::Centerable < GSDL::Tweenable < Reference < Object
Constructors
new(x1 : Num = 0, y1 : Num = 0, x2 : Num = 0, y2 : Num = 0, color : Color = Color::White, z_index = 0)
SourceInstance methods
center(x : Num = 0, y : Num = 0, width : Num = 1, height : Num = 1)
Sourcedistance
Sourceheight
Sourceperform_draw(draw : Draw)
Sourcerender_x
Sourcerender_y
Sourceupdate_geometry
needs to be called at the end of initialization, and in every #draw method (only if #changed?)
width
Sourcex1
Sourcex1=(x1 : Num)
Sourcex2
Sourcex2=(x2 : Num)
Sourcey1
Sourcey1=(y1 : Num)
Sourcey2
Sourcey2=(y2 : Num)
Sourcey=(y : Num)
Source