LinColorSpace {colorpatch} | R Documentation |
Creates a linear color space between two colors
Description
Creates a linear color space between two colors
Usage
LinColorSpace(color1, color2, n.out)
Arguments
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 |
Value
a palette
Examples
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)
[Package colorpatch version 0.1.2 Index]