Line - Mtax-Development/GML-OOP GitHub Wiki

Description

Constructs a two-dimensional Line Shape, which is a Rectangle rotated towards middle points of its sides, from which it is extended by its specified size.

Specification

Destruction
Elements
Garbage Collection
None

Properties

Name
Type
Default
Modifiable
location
None
Yes
size
1
Yes
fill_color
{int:color|Color2|Color4}
c_white
Yes
fill_alpha
1
Yes
outline_size
{int}
0
Yes
outline_color
{int:color|Color2|Color4}
undefined
Yes
outline_alpha
1
Yes

Construction types

Name
Arguments
New constructor
location {Vector4}
size? {real}
fill_color? {int:color|Color2|Color4}
fill_alpha? {real}
outline_size? {int}
outline_color? {int:color|Color2|Color4}
outline_alpha? {real}
From Rectangle
rectangle {Rectangle}
Empty
Constructor copy
other {Line}
⚠️ **GitHub.com Fallback** ⚠️