This is my "Pine Color Magic and Chart Theme Simulator" display using Pine Script version 4.0. The purpose of this colorcator is to show colors that are most suitable in my opinion for developing Pine scripts not using Pine's built-in colors. I would not qualify Pine built-in colors as visually appealing as they currently exist. Hopefully that will improve after...
20 step red/green gradient function
The color gradient function allow colorize any source in 5% steps.
Define the source, minimum and maximum value (constant or , for example, bb (or any other channel)).