input.color
Color input. Returns an input color. A color for light chart themes comes from light= or from a color.theme default: the settings show it as the light swatch until the user picks their own, and the script runs with it in light themes.
input.color(defval: const color, title: const string = na, tooltip: const string = na, group: const string = na, inline: const string = na, confirm: const bool = false, display: const string = na, active: const bool = true, light: const color = na) -> color
Parameters
defvalconst color: The starting color, a constant such as color.teal. A color.theme color sets the dark default and the light one at once.titleconst string: The setting's name in the indicator settings.tooltipconst string: Text shown when the pointer rests on the setting.groupconst string: The settings section it goes in; inputs with the same group share a section (default: Inputs).inlineconst string: Inputs next to each other with the same inline name share one row.confirmconst bool: Accepted for compatibility; it has no effect yet.displayconst string: Accepted for compatibility; it has no effect yet.activeconst bool: Accepted for scripts from Pine and ignored: it changes nothing on PROLYNT.lightconst color: the default for light chart themes (default: the same as defval)
Example
col = input.color(#ffffff, "Levels", light=#18181b)