TradeZoro
Notifications

Reference

Colors

Named colors and ways to make your own.

color.b(c)

Blue part, 0-255.

Returns: a number

ParameterType
ccolor

color.from_gradient(value, bottom_value, top_value, bottom_color, top_color)

A color between two colors, by where value sits between two values.

Returns: a color

ParameterType
valuenum
bottom_valuenum
top_valuenum
bottom_colorcolor
top_colorcolor

color.g(c)

Green part, 0-255.

Returns: a number

ParameterType
ccolor

color.new(c, transp=0)

The same color with transparency 0 (solid) to 100 (invisible).

Returns: a color

ParameterTypeNotes
ccolor
transpnumDefault 0

color.r(c)

Red part, 0-255.

Returns: a number

ParameterType
ccolor

color.rgb(red, green, blue, transp=0)

A color from red, green, blue (0-255).

Returns: a color

ParameterTypeNotes
rednum
greennum
bluenum
transpnumDefault 0

color.t(c)

Transparency, 0-100.

Returns: a number

ParameterType
ccolor

Education only. Not financial advice. Examples are teaching samples, not trading results.

Zscript is coming soon

The manual opens when Zscript launches.

Back to home