RGBinterpolate: RGBinterpolate

Description Usage Arguments Value See Also Examples

Description

Create a colour palette by linear interpolation in RGB space

Usage

1
RGBinterpolate(n=100, fromRGB, toRGB, bias =1.0)

Arguments

n

Length-1

fromRGB

Name are hex representation of initial colour

toRGB

Name are hex representation of final colour

bias

Power for transformation of index

Value

a colour palette of length n+1

See Also

library(colorspace), ~~~

Examples

1
2
3
	colramp(RGBinterpolate(n=100,"green","red"))
	colramp(RGBinterpolate(n=100,"green","red", bias =0.5))
	colramp(c(RGBinterpolate(n=20,"green","red"),RGBinterpolate(n=30,"red","blue")))

bertin documentation built on May 2, 2019, 5:54 p.m.