Fluid colour
Fluid colour
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?
-
- Filter Inserter
- Posts: 358
- Joined: Fri Jul 25, 2014 2:53 pm
- Contact:
Re: Fluid colour
you can use regular RGB values, i use this site http://www.rapidtables.com/web/color/RGB_Color.htm
Check out my mods
Re: Fluid colour
Thanks, that saves a headache!
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Fluid colour
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.
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.