Functions
color.b()
Reads the blue component of a colour. Its result is an int from 0 to 255, as with red and green.
Syntax · 1 of 4
color.b(const color color) → const int
Arguments
color required const color Color. Return Type
const int Syntax · 2 of 4
color.b(input color color) → input int
Arguments
color required input color Color. Return Type
input int Syntax · 3 of 4
color.b(simple color color) → simple int
Arguments
color required simple color Color. Return Type
simple int Syntax · 4 of 4
color.b(series color color) → series int
Arguments
color required series color Color. Return Type
series int Example
//@lipi=2
indicator("color.b Example", overlay=false)
c = color.rgb(40, 120, 220)
plot(color.b(c), title="Blue Component (220)", color=color.blue)