colGrad: Generates a smooth colour gradient

Description Usage Arguments Details Value Author(s) Examples

View source: R/color.r

Description

Generates a smooth colour gradient

Usage

1
colGrad(x, darken = 1)

Arguments

x

Number of colours required

darken

Multiplication factor. Must be less than 1. Smaller the darker.

Details

Generates a smooth colour gradient Goes from red to red/green to green to green/blue to blue to blu/red

Value

Returns vector of RGB colours

Author(s)

Wajid Jawaid

Examples

1
gradientColors <- colGrad(10)

wjawaid/roots documentation built on Sept. 12, 2017, 9:51 a.m.