LinColorSpace {colorpatch} | R Documentation |
Creates a linear color space between two colors
LinColorSpace(color1, color2, n.out)
color1 |
the first color (must be of the class colorspace::color) |
color2 |
the second color (must be of the class colorspace::color) |
n.out |
number of output colors |
a palette
library(colorspace)
library(colorpatch)
pal <- LinColorSpace(sRGB(0,1,0), sRGB(0,0.1,0), 32)
pal <- append(pal, sRGB(0,0,0))
pal <- append(pal, LinColorSpace(sRGB(0.1,0,0), sRGB(1,0,0), 32))
PlotUniformity(pal)
print(pal)