PINE LIBRARY

ColorPalettes

This is my first public (and I hope not the last) library providing different color palettes used for data visualization. Each palette can contain either 3 to 9 colors or 3 to 11 colors.

So there you go. Happy New Year!

I want your new year to be as colorful, vibrant and rich as these color palettes.

Dedicated to @veryfid. RIP, dude.

---

Library "ColorPalettes"
A library of various color palettes for data visualization

Reds(n)
  A function to generate the sequential `Reds` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `Reds` palette.

Blues(n)
  A function to generate the sequential `Blues` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `Blues` palette.

Greens(n)
  A function to generate the sequential `Greens` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `Greens` palette.

Purples(n)
  A function to generate the sequential `Purples` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `Purples` palette.

Oranges(n)
  A function to generate the sequential `Oranges` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `Oranges` palette.

Greys(n)
  A function to generate the sequential `Greys` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `Greys` palette.

YlGn(n)
  A function to generate the sequential `YlGn` (Yellow/Green) palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `YlGn` palette.

YlGnBu(n)
  A function to generate the sequential `YlGnBu` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `YlGnBu` palette.

GnBu(n)
  A function to generate the sequential `GnBu` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `GnBu` palette.

BuGn(n)
  A function to generate the sequential `BuGn` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `BuGn` palette.

PuBuGn(n)
  A function to generate the sequential `PuBuGn` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `PuBuGn` palette.

PuBu(n)
  A function to generate the sequential `PuBu` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `PuBu` palette.

BuPu(n)
  A function to generate the sequential `BuPu` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `BuPu` palette.

RdPu(n)
  A function to generate the sequential `RdPu` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `RdPu` palette.

PuRd(n)
  A function to generate the sequential `PuRd` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `PuRd` palette.

OrRd(n)
  A function to generate the sequential `OrRd` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `OrRd` palette.

YlOrRd(n)
  A function to generate the sequential `YlOrRd` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `YlOrRd` palette.

YlOrBr(n)
  A function to generate the sequential `YlOrBr` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `YlOrBr` palette.

Inferno(n)
  A function to generate the sequential `Inferno` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `Inferno` palette.

Magma(n)
  A function to generate the sequential `Magma` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `Magma` palette.

Plasma(n)
  A function to generate the sequential `Plasma` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `Plasma` palette.

Viridis(n)
  A function to generate the sequential `Viridis` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `Viridis` palette.

Cividis(n)
  A function to generate the sequential `Cividis` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `Cividis` palette.

Spectral(n)
  A function to generate the diverging `Spectral` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `Spectral` palette.

Turbo(n)
  A function to generate the diverging `Turbo` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `Turbo` palette.

BrBG(n)
  A function to generate the diverging `BrBG` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `BrBG` palette.

PiYG(n)
  A function to generate the diverging `PiYG` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `PiYG` palette.

PRGn(n)
  A function to generate the diverging `PRGn` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `PRGn` palette.

PuOr(n)
  A function to generate the diverging `PuOr` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `PuOr` palette.

RdBu(n)
  A function to generate the diverging `RdBu` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `RdBu` palette.

RdGy(n)
  A function to generate the diverging `RdGy` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `RdGy` palette.

RdYlBu(n)
  A function to generate the diverging `RdYlBu` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `RdYlBu` palette.

RdYlGn(n)
  A function to generate the diverging `RdYlGn` palette of the specified size.
  Parameters:
    n (int) The size of the output palette to generate. Default is 9.
  Returns: An array of colors from the `RdYlGn` palette.
arrayscolors

Pine脚本库

本着真正的TradingView精神,作者将此Pine代码发布为开源脚本库,以便我们社区的其他Pine程序员可以重复使用它。向作者致敬!您可以私下或在其它开源出版物中使用此脚本库,但在出版物中重复使用此代码受网站规则约束。


Freelance -> Telegram: @alex_everget

A list of FREE indicators:
bit.ly/2S7EPuN

A list of PAID indicators:
bit.ly/33MA81f

Earn $15:
tradingview.com/pricing/?share_your_love=everget
更多:

免责声明