Question / Help Text Color Code in Xconfig Files

Alewater

New Member
Hi all,

I stream volleyball matches for a number of teams which all have different set ups.

I've created a website where I can add all the information for that fixture and it outputs custom profile and scene config files.

It all works ok except for one thing, the color element in the xconfig files is a random number which is up to 8 digits and starts with a -. I can't find any information as to how this relates to Hex or RGB colors.

How does OBS generate this number and how can I generate it?

Thanks

Al
 

Alewater

New Member
I've found out that it stores it as a long int, so I can use the php function hexdec to create the color.

Now I think I've found a bug, in the global.ini my custom colors are listed as
Color14=255 blue
Color13=65280 green
Color12=16711680 red

but blue and green should be the other way around. Is this the same for anyone else?
 
Top