Color4 - Mtax-Development/GML-OOP GitHub Wiki

Description

Constructs a container for four colors. For rectangular shapes, these colors are organized by the following coordinates:
  • color1: X1 Y1
  • color2: X2 Y1
  • color3: X2 Y2
  • color4: X1 Y2

Specification

Destruction
Elements
Garbage Collection
None

Properties

Name
Type
Default
Modifiable
color1
{int:color}
c_white
Yes
color2
{int:color}
c_white
Yes
color3
{int:color}
c_white
Yes
color4
{int:color}
c_white
Yes

Construction types

Name
Arguments
Argument note
New constructor
color1? {int:color}
color2? {int:color}
color3? {int:color}
color4? {int:color}
Default for all values
The color values will be set to white.
One color for all values
color {int:color}
Color2 + color + color
other {Color2}
color {int:color}
color {int:color}
In any order, it will be reflected in the values of this constructor.
Color2 pair
first {Color2}
second {Color2}
Color3 + color
other {Color3}
color {int:color}
In any order, it will be reflected in the values of this constructor.
Constructor copy
other {Color4}
⚠️ **GitHub.com Fallback** ⚠️