intensity.colors {Cardinal}R Documentation

Color Palettes for Imaging

Description

Create a vector of n continuous colors.

Usage

intensity.colors(n, alpha=1)
risk.colors(n, alpha=1)
gradient.colors(n, start="white", end="black", alpha=1)
alpha.colors(n, col="red", alpha.power=2, alpha=(seq_len(n)/n)^alpha.power)

Arguments

n

the number of colors

alpha

a vector of alpha values between 0 and 1

start

the starting color value

end

the ending color value

col

the color(s) to expand with transparency

alpha.power

how the alpha should ramp as it increases

Value

A pallete of colors.

Author(s)

Kylie A. Bemis

Examples

col <- intensity.colors(100^2)
if ( interactive() ) {
	image(matrix(1:(100^2), nrow=100), col=col)
}

[Package Cardinal version 1.12.1 Index]