Skip to content
Algo Trade Analytics Docs

color.r() - Pine Script Function

Retrieves the value of the color’s red component.

color.r(color) → const float
NameTypeDescription
colorconst colorColor.

The value (0 to 255) of the color’s red component.

//@version=6
indicator("color.r", overlay=true)
plot(color.r(color.red))