Functions
linefill.set_color()
Sets the fill color of an existing linefill.
Syntax
linefill.set_color(series linefill id, series color color) → void
Arguments
id required series linefill Linefill object. color required series color New fill color. Return Type
void Example
//@lipi=2
indicator("linefill.set_color Example", overlay=true)
if barstate.islast {
l1 = line.new(bar_index[10], high[10], bar_index, high)
l2 = line.new(bar_index[10], low[10], bar_index, low)
f = linefill.new(l1, l2, color.new(color.blue, 0.7))
linefill.set_color(f, color.new(color.orange, 0.7))
}