Fluid colour

Place to get help with not working mods / modding interface.
Vulcan
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Sat Aug 02, 2014 12:34 pm
Contact:

Fluid colour

Post 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?
cartmen180
Filter Inserter
Filter Inserter
Posts: 358
Joined: Fri Jul 25, 2014 2:53 pm
Contact:

Re: Fluid colour

Post by cartmen180 »

you can use regular RGB values, i use this site http://www.rapidtables.com/web/color/RGB_Color.htm
Check out my mods
Vulcan
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Sat Aug 02, 2014 12:34 pm
Contact:

Re: Fluid colour

Post by Vulcan »

Thanks, that saves a headache!
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Fluid colour

Post 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.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Post Reply

Return to “Modding help”