TradingView
Pip-Whisperer
11 de Ago de 2022 19:36

Color Library: Rainbow Index & Simplest Return Color 

GBP/JPYOANDA

Descrição

Library "Color Library!"
To help with large projects that need colors!
If you guys make the library bigger, share it so we can all have tons of colors!

2 Functions
Uppercase and Lowercase, because why not?
import library as color
1.) color.this("Brown") // or color.this("brown") both work
2.) color.rainbow(1) //Returns first index of Rainbow

this(x)
  TODO: color.this(Brown)
  Parameters:
    x: TODO: String Color Name
  Returns: TODO: Color

rainbow(x)
  TODO: Return Rainbow Index
  Parameters:
    x: TODO: Number is index of Rainbow :)
  Returns: TODO: Color

Notas de Lançamento

v2
Constant Vs Series mismatch
Updated:
this(x)
  TODO: color.this(Brown)
  Parameters:
    x: TODO: String Color Name
  Returns: TODO: Color

rainbow(x)
  TODO: Return Rainbow Index
  Parameters:
    x: TODO: Number is index of Rainbow :)
  Returns: TODO: Color
Comentários
kaigouthro
Look through my scripts, i have a few very useful color tools for the design minded scripter.
Pip-Whisperer
Cannot use these as defaults without copying and pasting unfortunately
Mais