Megaquarium

Megaquarium

What will you create?
Access an ocean of content for Megaquarium created by players like you. New animals, decorations, tanks and more are available to expand your game and tailor it to your liking.
Learn More
mod question on color codes
Some items (such as food items, tools) use a "color" tag to change the text color in menus (perhaps among other things) and the 'code' used is not very obvious.e.g.:
"color":"0xFBAC46FF",

Some, but not all of these have descriptions in gui.data (for zones). It resembles some type of hex, but a (not very thorough) web search can't find anything anywhere matching/describing these.

For our own color selection is there either
A) a definition of what the code means (a translator)
or
B) a thorough list of all the codes recognized (with color described, ala gui.data)?
< >
Showing 1-3 of 3 comments
Twice Circled  [developer] 3 3 Jun, 2020 @ 1:03am 
Yes, no problem. I hope I've understood your questions.

0xFBAC46FF is as you suggested a hex code. The 0x is "computer speak" for "the following series of numbers is going to be in hex".

On the web (HTML, CSS) hex colors normally appear with a # in front of them so the first thing is to replace the 0x withe a #.

#FBAC46FF

Each pair of numbers refers to a color component FB = red, AC = green, 46 = blue, FF = alpha/transparency. FF is opaque, 00 is transparent. Each of the components is on a scale of 00 to FF.

To see what the color is online, the easiest thing is to remove the alpha digits so you are left with #FBAC46.

Copy and paste that into google: https://www.google.com/search?q=%23FBAC46 and you get a color. Drag the color picker around it will give you the hex for any color imaginable. Add the FF back on, swap the # for 0x and you have translated it back to the format used by the game.
Last edited by Twice Circled; 3 Jun, 2020 @ 1:04am
stlnegril9 32 3 Jun, 2020 @ 6:55am 
Originally posted by Twice Circled:
...

FF = alpha/transparency. ...

:steamfacepalm: 4th bit is transparency! That's why we couldn't find it anywhere.
Thanks.
Twice Circled  [developer] 3 3 Jun, 2020 @ 7:05am 
Happy to help. :)
< >
Showing 1-3 of 3 comments
Per page: 1530 50