Triangle - Mtax-Development/GML-OOP GitHub Wiki

Description

Constructs a two-dimensional Triangle Shape, connecting three specified points. The size of its outline is specified by scaled proportionally to the fill, enlarging it without altering its proportions.

Specification

Destruction
Elements
Garbage Collection
None

Properties

Name
Type
Default
Modifiable
location1
None
Yes
location2
undefined
Yes
location3
undefined
Yes
fill_color
{int:color|Color3}
undefined
Yes
fill_alpha
1
Yes
outline_scale
0
Yes
outline_color
{int:color|Color2|Color3}
undefined
Yes
outline_alpha
1
Yes

Construction types

Name
Arguments
New constructor
location1 {Vector2}
location2 {Vector2}
location3 {Vector2}
fill_color? {int:color|Color3}
fill_alpha? {real}
outline_scale? {real}
outline_color? {int:color|Color2|Color3}
outline_alpha? {real}
Empty
Constructor copy
other {Triangle}
⚠️ **GitHub.com Fallback** ⚠️