A function defined in BBMOD_Color.gml
FromHex(_hex)
Initializes the color using RRGGBB
hexadecimal format. Alpha channel is set to 1.
Name | Type | Description |
---|---|---|
_hex | Real |
The hexadecimal color. |
Struct.BBMOD_Color
Returns self
.
new BBMOD_Color().FromHex($FF0000); // Same as FromConstant(c_red)
new BBMOD_Color().FromHex($00FF00); // Same as FromConstant(c_lime)
new BBMOD_Color().FromHex($0000FF); // Same as FromConstant(c_blue)
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.