BBMOD_Color.FromHex

A function defined in BBMOD_Color.gml

FromHex(_hex)

Description

Initializes the color using RRGGBB hexadecimal format. Alpha channel is set to 1.

Arguments

Name Type Description
_hex Real The hexadecimal color.

Returns

Struct.BBMOD_Color Returns self.

Example

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)
Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on January 21, 2024 using GMDoc.