determine more pale colors for given colors

Share:

Description

Finds colors that are ‘equivalent’ to the colors given as the first argument, but more pale.

Usage

1
colorpale(col = NA, pale = 0.3, ...)

Arguments

col

a color or a vector of colors for which the pale version should be found

pale

number between 0 and 1 determining how much paler the result should be.

...

further arguments passed on to rgb

Details

The function increases rgb coordinates of colors ‘proportionally’: crgb <- t(col2rgb(col)/255); rgb(1 - pale * (1 - crgb))

Value

character vector: names of colors to be used as color argument for graphical functions.

Author(s)

Werner A. Stahel, ETH Zurich

See Also

rgb

Examples

1
2
( t.col <- colorpale(c("red","blue")) )
plot(0:6, type="h", col=c("black","red","blue",t.col, colorpale(t.col)), lwd=5)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.