Generate a red-white-green color sequence of a given length.
number of colors to be returned
color correction power
The function returns a color vector that starts with pure green, gradually turns into white and then to
red. The power
gamma can be used to control the behaviour of the quarter- and three quarter-values
(between red and white, and white and green, respectively). Higher powers will make the mid-colors more
white, while lower powers will make the colors more saturated, respectively.
A vector of colors of length
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.