end
end
+-- API ENTRY POINT
+-- Called every frame. Returns the color (if any) to paint around the given
+-- channel. Returns a CSS color (typically to mark live and preview signals);
+-- "transparent" is allowed.
+-- Will never be called for live (0) or preview (1).
+function channel_color(channel)
+ return "transparent"
+end
+
-- API ENTRY POINT
-- Returns if a given channel supports setting white balance (starting from 2).
-- Called only once for each channel, at the start of the program.
signal_num = num - 2
end
- prepare = function()
+ local prepare = function()
chain.input:connect_signal(signal_num)
local color = input_neutral_color[signal_num + 1]
chain.wb_effect:set_vec3("neutral_color", color[1], color[2], color[3])