A function defined in BBMOD_Color.gml
ToConstant()
Encodes the color into a single value, compatible with GameMaker's color constants. Ignores the alpha channel.
Constant.Color
The color as a single value.
var _red = new BBMOD_Color(255, 0, 0);
show_debug_message(_red.ToConstant() == c_red); // Prints true
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.