Base16 Syntax Theme Collection. dark/light Pairs placed into 2 matched groups. included is tool for assembling your own themes, as well as all themes String names to create your own Input menus / add to your own theme matrix, and theme selectors
addToMatrix(_mtx, _title, _choices, _theme) To create a theme matrix with string index, use a color matrix global add theme name to string array of theme titles and last input a theme from above, or create your own theme arrays. Parameters: _mtx: (color ) matrix for storage _title: (string ) Name of theme being added _choices: (string[] ) name index _theme: (color[] ) colors being added Returns: void
addToMatrix(_mtx, _theme) Add theme to color matrix Non-indexed Parameters: _mtx: (color ) matrix for storage _theme: (color[] ) colors being added
dark() Dark Themne Selection (With light Equivalent in same location) Returns: Color matrix of dark themes
light() light Themne Selection (With dark Equivalent in same location) Returns: Color matrix of light themes
selectTheme(_mtx, _themes, _theme) Get a Theme By Name Parameters: _mtx: (Matrix color) Name of Theme _themes: (Array string) Array with Names of Themes _theme: (string ) Name of Theme to select
selectTheme(_mtx, _theme) Get a Theme By Number Parameters: _mtx: (Matrix color) Name of Theme _theme: (int ) Number of Theme to select
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.
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.