Color4 - Mtax-Development/GML-OOP GitHub Wiki
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
• color1: X1 Y1
• color2: X2 Y1
• color3: X2 Y2
• color4: X1 Y2
Destruction |
Elements |
Garbage Collection |
None |
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 |
Name |
Arguments |
Argument note |
New constructor |
||
Default for all values |
The color values will be set to white. |
|
One color for all values |
color {int:color} |
|
Color2 + color + color |
In any order, it will be reflected in the values of this constructor. |
|
Color2 pair |
||
Color3 + color |
In any order, it will be reflected in the values of this constructor. |
|
Constructor copy |
other {Color4} |