Function referenceRunnablecolor.from_gradient
color
Named colours and functions to make your own. Transparency runs 0 (opaque) to 100 (invisible).
24 names from PineTS 0.11.1 · 4 with full entries
color.new
Verifiedcolor.new(color, transp)
The same colour with transparency transp (0 to 100).
color.rgb
Supportedcolor.rgb(red, green, blue, transp)
A colour from 0 to 255 channels.
color.from_gradient
Verifiedcolor.from_gradient(value, bottom_value, top_value, bottom_color, top_color)
A colour between two, by where value sits in a range.
//@version=6indicator("color.from_gradient")r = ta.rsi(close, 14)plot(r, "RSI", color = color.from_gradient(r, 30, 70, color.red, color.teal), linewidth = 3)color.r
Supportedcolor.r(color) · color.g · color.b · color.t
Read one channel or the transparency.
Everything else in color
Also implemented. These follow TradingView’s Pine v6 reference for their arguments.
- color.aquaSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.bSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.blackSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.blueSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.fuchsiaSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.gSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.grayVerifiedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.greenSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.limeSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.maroonSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.oliveSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.orangeVerifiedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.purpleVerifiedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.redVerifiedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.silverSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.tSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.tealVerifiedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.whiteVerifiedImplemented. Arguments as in TradingView's Pine v6 reference.
- color.yellowSupportedImplemented. Arguments as in TradingView's Pine v6 reference.