Reference
Colors
Named colors and ways to make your own.
color.b(c)
Blue part, 0-255.
Returns: a number
| Parameter | Type |
|---|---|
c | color |
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
| Parameter | Type |
|---|---|
value | num |
bottom_value | num |
top_value | num |
bottom_color | color |
top_color | color |
color.g(c)
Green part, 0-255.
Returns: a number
| Parameter | Type |
|---|---|
c | color |
color.new(c, transp=0)
The same color with transparency 0 (solid) to 100 (invisible).
Returns: a color
| Parameter | Type | Notes |
|---|---|---|
c | color | |
transp | num | Default 0 |
color.r(c)
Red part, 0-255.
Returns: a number
| Parameter | Type |
|---|---|
c | color |
color.rgb(red, green, blue, transp=0)
A color from red, green, blue (0-255).
Returns: a color
| Parameter | Type | Notes |
|---|---|---|
red | num | |
green | num | |
blue | num | |
transp | num | Default 0 |
color.t(c)
Transparency, 0-100.
Returns: a number
| Parameter | Type |
|---|---|
c | color |
Education only. Not financial advice. Examples are teaching samples, not trading results.
