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)

roots documentation built on July 11, 2017, 5:02 p.m.