color.t() - Pine Script Function
color.t()
Section titled “color.t()”Overview
Section titled “Overview”Retrieves the color’s transparency.
Syntax
Section titled “Syntax”color.t(color) → const floatParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| color | const color | Color. |
Returns
Section titled “Returns”The value (0-100) of the color’s transparency.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("color.t", overlay=true)plot(color.t(color.new(color.red, 50)))