FromHex

function

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 © 2022, BlueBurn. Built on April 11, 2022 using GMDoc.