Pip-Whisperer

Color Library: Rainbow Index & Simplest Return Color

Pip-Whisperer מעודכן   
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
הערות שחרור:
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
ספריית Pine

ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומים אחרים בקוד פתוח, אך השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בספרייה זו?

העתק את השורה הבאה והדבק אותה בסקריפט שלך.