Color Storing on JSON Based Remote Configs

LionSDK converts color data into JSON-compatible values for use in Remote Configs.

Formatting:

Hexadecimal color code should have # hash symbol at the start and contain at least 6 characters between 0~F.

For example:

"colorName": "#00FFEE"

For alpha (transparency) you should use 8 characters. Last 2 characters will represent alpha (transparency). For example "colorName": "#00FFEEAA"

Strings that begin with '#' will be parsed as hexadecimal in the following way:

#RGB (becomes RRGGBB)
#RRGGBB
#RGBA (becomes RRGGBBAA)
#RRGGBBAA

Strings that do not begin with '#' will be parsed as literal colors, with the following supported:

red, cyan, blue, darkblue, lightblue, purple, yellow, lime, fuchsia, white, silver, grey, black, orange, brown, maroon, green, olive, navy, teal, aqua, magenta..

Last updated