Author Topic: colors in server.cs  (Read 408 times)

i'm new to editing cs so i don't understand these colors. help?

ive figured out this is some kind of blue

colors[0]     = "0.1 0.1 1.0 0.9";
colors[1]     = "0.0 0.0 0.8 0.0";

but is there a list of colors for this? i only know hex rgb  and those but i dont understand this

to convert them to hex, just multiply by 255 and i think floor the value
the last number is alpha (transparency)

to convert a rgb value into this decimal point color system, just do rgb_value/255
like 156/255