gliderfund

Colors

gliderfund Updated   
Library "Colors"
This Library delivers Hex Codes of Colors frequently used in indicators and strategies.

v3(colorName) Collection: Pinescript v3 Colors.
  Parameters:
    colorName: Color Name.
  Returns: Hex code of the inquired color.

v4(colorName) Collection: Pinescript v4 Colors.
  Parameters:
    colorName: Color Name.
  Returns: Hex code of the inquired color.
Release Notes:
v2

Added:
checkLuminance(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.
  Parameters:
    srcColor (color): Color to check. Usually a background color. By default 'chart.bg_color'.
    threshold (simple int)
  Returns: Boolean isDark

Updated:
v3(colorName)
  Collection: Pinescript v3 Colors
  Parameters:
    colorName (simple string): Color Name
  Returns: Hex code of the inquired color

v4(colorName)
  Collection: Pinescript v4 Colors
  Parameters:
    colorName (simple string): Color Name
  Returns: Hex code of the inquired color
Release Notes:
v3

Updated:
checkLuminance(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.
  Parameters:
    srcColor (simple color): Color to check. Usually a background color. By default 'chart.bg_color'.
    threshold (simple int)
  Returns: Boolean isDark
Release Notes:
v4

Added:
checkLuminanceSimple(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.
  Parameters:
    srcColor (simple color): Color to check. Usually a background color. By default 'chart.bg_color'.
    threshold (simple int)
  Returns: Boolean isDark

checkLuminanceSeries(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.
  Parameters:
    srcColor (color): Color to check. Usually a background color. By default 'chart.bg_color'.
    threshold (simple int)
  Returns: Boolean isDark

Removed:
checkLuminance(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.
Release Notes:
v5

Added:
checkLuminance(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.
  Parameters:
    srcColor (color): Color to check. Usually a background color. By default 'chart.bg_color'.
    threshold (simple int)
  Returns: Boolean isDark

Removed:
checkLuminanceSimple(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.

checkLuminanceSeries(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.

I develop indicators meant to be useful, profitable and good looking.

Please send me a Private Message if you intend to subscribe to an Invite-Only indicator or to hire me to develop some custom work.
Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House Rules.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this library?

Copy the following line and paste it in your script.