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

Example

col = input.color(#ffffff, "Levels", light=#18181b)