Description Usage Arguments Value Author(s) Examples
Generates a vector of n colors that ramp between the two specified colors, evenly spaced in either RGB space (mode = "RGB") or HSV space (mode = "HSV")
1 |
color1 |
A color, either specified by name (e.g. "red") or hex code (e.g. "FF0000") |
color2 |
A second color |
n |
The number of colors to produce |
mode |
Either "RGB" or "HSV", specifies whether to ramp between the colors in RGB space or HSV space. |
circular |
If using mode = "HSV", specifies whether to ramp between hues using circular means. This is usually a good idea because hues are essentially circular (a hue of 0.01 is very similar to 0.99), but produces results with a clear break if the span of hues covers more than half of the circle. |
A vector of n colors.
Brody Sandel
1 2 | TestPalette(Palette("Green","Red",100))
TestPalette(Palette("Green","Red",100,"HSV"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.