Page 1 of 1

Fluid colour

Posted: Mon Oct 20, 2014 4:24 pm
by Vulcan
How does the color system for fluids work? I want to know how to tell what color a combination of r, g and b will be without having to restart the game each time. Does it relate to normal RGB colour or is a variation unique to Factorio?

Re: Fluid colour

Posted: Mon Oct 20, 2014 4:33 pm
by cartmen180
you can use regular RGB values, i use this site http://www.rapidtables.com/web/color/RGB_Color.htm

Re: Fluid colour

Posted: Mon Oct 20, 2014 4:35 pm
by Vulcan
Thanks, that saves a headache!

Re: Fluid colour

Posted: Fri Oct 24, 2014 8:13 am
by bobingabout
r, g and b are the RGB values measured 0-1 instead of 0-255. A simple way to convert from RGB values, simply divide your number by 255. so rgb 255,128,64(which is white) becomes something like r=1, g=0.5, b=0.25.

Also, there are 2 values to set. Fluid colour and Flow colour. Fluid is obviously the colour of the fluid, flow is the colour of the "air bubbles" within the fluid. A neat trick that I've seen used for liquid air is that the fluid is set to black, with cyan flow, gives an interesting effect.