Hex color gradient generator

gradient(colors, n)

purpleOrange(n = 256L)

blueYellow(n = 256L)

Arguments

colors

character. Color names or hexadecimal values used to define the gradient.

n

integer(1). The number of colors (>= 1) to be in the palette.

Value

character. Hexadecimal colors in RGB space.

Note

Updated 2019-09-13.

Examples

purpleOrange(n = 3L)
#> [1] "#AF52DE" "#8E8E93" "#FF9500"
blueYellow(n = 3L)
#> [1] "#007AFF" "#000000" "#FFCC00"