I'd like to be able to access base_color and flow_color for a fluid prototype.
Setting lamp colors to match fluid colors is one potential use for this.
Fluid colors
Fluid colors
Last edited by sparr on Mon Jun 06, 2016 8:43 am, edited 1 time in total.
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Fluid colors
in the data loading phase?
Wouldn't that be as simple as accessing data.raw.fluid["water"].base_color and data.raw.fluid["water"].flow_color?
they should return a table that contains r, g and b as a minimum.
Wouldn't that be as simple as accessing data.raw.fluid["water"].base_color and data.raw.fluid["water"].flow_color?
they should return a table that contains r, g and b as a minimum.
Re: Fluid colors
I want to access them in control.lua, not during data loading. I'll amend my original description to better cover that.
Re: Fluid colors
implemented (in 0.13?) per RSeding on IRC